|
Thanks a milll Riazi. But i am also having problems exporting strings from the dll. the only thing that seems to work is if i put the string value in a
messagebox
CString myString()
{
char exString[10] = "Hellodarling"
AfxMessageBox( exString )
return exString
}
this usually give an error of === bad dll call when i call it up in vb
while the message box will display the exstring... and if i change the definition of exstring to == CString exstring it also give an error...
what do think
larry_larry
|
|
|
|
|
Strings in VB are differ from VC. Use BSTR instead of CString .
A. Riazi
|
|
|
|
|
BSTR sTittle()
{
CString s = _T("dllretval");
double d = atof (s);
return s;
}
error C2440: 'return' : cannot convert from 'class CString' to 'unsigned short *'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
Error executing cl.exe.
BSTR sTittle()
{
BSTR s = "dllretval";
return s;
}
error C2440: 'initializing' : cannot convert from 'char [9]' to 'unsigned short *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.
larry_larry
|
|
|
|
|
I was wondering if anybody could tell me where to find a ports list for controling the ethernet card. That or some code showing how to change the cards mac address? The ports would be better.
in ports in meen asm ports
out F8,ax
4r3 j00 L33+
|
|
|
|
|
I think you can't change the MAC address of a card. The MAC placed on the card by it's manufacturer.
A. Riazi
|
|
|
|
|
sure you can change the mac address....search for it on the web and you'll find applications like SMac which you can use to change the mac address for your ethernet card.
|
|
|
|
|
If I changed the MAC address of my network card to one that exist in a LAN, what happened? Also, is it possible to change MAC address of DVB cards?
A. Riazi
|
|
|
|
|
If you change your Mac Address to something that exists, bad things can happen. Exactly what depends on many things. If you never transmit, and you have a switched network nothing will happen. If you have hubs, then you will see all traffic for the other machine as if it went to yours. (better to tell the card to listen for everything if you want to do this though)
If you transmit you mess up the network, and the sys admin will be down your throat. Don't do it.
Nearly all[1] cards support changing the Mac Address from software. DecNet requires this ability. Everyone is afraid that the last person on earth who runs DecNet will buy their card and it won't work. Besides, because everything ethernet has always supported changing the Mac Address, it is easier to leave that in each upgrade than to take it out.
I don't know what a DVB card is, so I can't speak for that particular case.
[1]It is probably safe to just say all. I know of no exceptions and find them unlikely.
|
|
|
|
|
Thanks for your comment. Very useful. DVB is a card for receiving data from satellite. Sending data done via a regular modem but receiving data done by DVB. DVB has a MAC address, if received data contains this MAC, then capture this data and deliver it to Windows.
Best regards,
A. Riazi
|
|
|
|
|
hi !
I am a newbie with MAPI.I figured out how to use MAPI to read/send/delete maessages etc. Can anybody tell me how to strip a message of its attatchments ?
Also can anyone tell me how to find the path to the storage (.pst ) file of the currently logged in profile ( logged in thru MapiLogonEx( ) ).
Thanks in advance.
Best Regards,
_KANE_
"Some guys hack just to get themselves a girlfriend.What a pathetic reason huh ?"
|
|
|
|
|
|
well i already had a look at those, there;s one that lets you find the path to the .pst file but i cannot find the code for stripping the attatchments..
-kane
"Some guys hack just to get themselves a girlfriend.What a pathetic reason huh ?"
|
|
|
|
|
Hello,
I need to bring up 2 dialog windows and I need to work with then. How can I bring up 2 dialog windows and use them at the same time?.
When I do it now I can olny use the last dialog I show.
I work with MFC. Please help me.
|
|
|
|
|
|
Just create dialogs as modeless dialogs not modal. Here is an example:
CMyDlg1 dlg1;
dlg1.Create(...);
CMyDlg2 dlg2;
dlg2.Create(...);
A. Riazi
|
|
|
|
|
Create?
What should I type in the Create?
dlg1.Create(???);
|
|
|
|
|
dlg1.Create(ID_OF_YOUR_DIALOG);
A. Riazi
|
|
|
|
|
Yes but the dialog will not show it self.
If I try ShowWindow(SW_SHOW); I still not see it,
And if I try dlg1.DoModle(); its the same.
So how can I bring up the dialog window and see it.
|
|
|
|
|
Define dlg1 and dlg2 as member variables of your main class.
A. Riazi
|
|
|
|
|
I Have done that byt how can I show the dialog?,
Well I can use DoModal if I do that I get;
you cant use that with a modless dialog so how can I show the dialog?. If I use ShowWindow(SW_SHOW) nothing happends so I need to show the window but how do I do that?
|
|
|
|
|
The Create() member function must show you dialog window, if you didn't see anything, you did something wrong.
A. Riazi
|
|
|
|
|
Well I see that It somehow destroj the dialog window,
Is ther anthing I need to do?
|
|
|
|
|
Hi,,
How do i know at run time, that my application is minimised or lost focus ??
Thanx in advance,
saleem
|
|
|
|
|
Handle WM_SHOW and WM_KILLFOCUS .
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Hi,
In one of our applications, we are using a lot VBScripts to get some work done like file transfer, etc., since the requirements for these normally varies and hence is not nice to put into our application itself.
Now, the problem we are facing is that when these scripts are executed by our application using the CSCRIPT interpreter, common anti-virus apps like Norton, disable them or pop-up a question to the user. Is there a way to avoid this??
Thanks,
Krishnan
|
|
|
|