|
Nope. It's not useful. That's a call from VB to VC++. I wanted the other way around using the address of a VB function. And it doesn't even work so well, there are several limitations that the code has, not to mention some assumptions that the dude makes and I don't like that. I pass arrays from VB to VC++ using a different, more effective and safe method, but they can't be modified just as I would like. Anyway, I did find other ways, but that particular way (with calling VB from VC++ still doesn't work). Maybe somebody'll figure it out after I post the article.
-= E C H Y S T T A S =-
The Greater Mind Balance
|
|
|
|
|
I am using Visual Studio .NET 2003. I have a solution with multiple projects inside it. Some projects depend on others to build (I added them as references) and the dependencies are correctly set.
I keep getting this error ...
wilogic error LNK2019: unresolved external symbol "public: __thiscall wanderingidiot::Wi_object::Wi_object(void)" (??0Wi_object@wanderingidiot@@QAE@XZ) referenced in function "public: __thiscall wanderingidiot::logic::Wi_charachter::Wi_charachter(void)" (??0Wi_charachter@logic@wanderingidiot@@QAE@XZ)
The solution consists of 3 dll's and an executable. Wi_object resides inside a particular dll ... and I am trying to inhert from it to another class residing in another dll. Any idea what I'm missing over here?
|
|
|
|
|
Use DumpBin /EXPORTS and make sure the class members got exported from the DLl with the
decoration the linker is looking for.
Either they did not get exported with that naming convention, or else you are not trying to import them correctly , in which case your header file needs modification to perhaps imply _import.
Give that a try
|
|
|
|
|
Okay ..
Found about this in MSDN
#define DllExport __declspec( dllexport )
now it seems to be working.
Thankyou.
|
|
|
|
|
I wrote a hook message to record all the messages on the choosen windows(it is choose by the first mouse click)but it did not do right.
//////////globle variable///////////////
#pragma data_seg(".SHARDAT")
static HHOOK hkb=NULL;
FILE *f1;
BOOL bfist=FALSE;
HWND m_handlechoosen;
#pragma data_seg()
//////////////////////////
LRESULT __declspec(dllexport)__stdcall CALLBACK MessageProc(int nCode,WPARAM wParam,LPARAM lParam)
{
PMSG mesg = (PMSG)lParam;
if (nCode>0) {
//get the first window handle choosen
if (bfist==FALSE&&mesg->message==WM_LBUTTONDOWN) {
bfist=TRUE;
m_handlechoosen=mesg->hwnd;
}
//recorder message belong to the handle choosen
if (bfist==TRUE&&mesg->hwnd==m_handlechoosen) {
f1=fopen("c:\\report.txt","a+");
int nLen = ::GetWindowTextLength(mesg->hwnd);
TCHAR *tszWindowName = new TCHAR;
::GetWindowText(mesg->hwnd, tszWindowName, nLen + 1);
if (nLen>0) {
fprintf(f1, "code=0x%X wParam=0x%X lParam=0x%X | msg->hwnd(Window name)=%s msg->message=0x%X msg->wParam=0x%X msg->lParam=0x%X\n",
nCode,
wParam,
lParam,
tszWindowName,
mesg->message,
mesg->wParam,
mesg->lParam
);
}
else
{
fprintf(f1, "code=0x%X wParam=0x%X lParam=0x%X | msg->hwnd(Window name)=Desktop Window msg->message=0x%X msg->wParam=0x%X msg->lParam=0x%X\n",
nCode,
wParam,
lParam,
mesg->message,
mesg->wParam,
mesg->lParam
);
}
delete tszWindowName;
fclose(f1);
}
}
else
{
CallNextHookEx( hkb, nCode, wParam, lParam );
return 0;
}
return CallNextHookEx( hkb, nCode, wParam, lParam );
}
->The result are all the messages....
...Please help me ...
|
|
|
|
|
mcnam wrote: ...but it did not do right.
Ok, and?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
I'm working on a windows ce development project, and on my compact flash card containing the distribution is "the registry file". I want to be able to edit, off-line, this file. According to Windows CE doc, the format is the same as Windows XP, etc.
When I attempt to open the file on my desktop with regedit, it asks me "Would you like to merge this file?" Noooo, I don't want to do *that*, I want to just see what is in it.
Is there a way to open a registry file on disk - I don't want the live version.
Before you say windows ce is windows ce.... imagine if I have an OS disk that won't boot. I remove the disk from one machine and mount the disk in another workstation. Now I can access the registry file on the off-line disk. But can I?
I see nothing in msdn about opening a static registry file.
Ideas?
C. Gilley
Will program for food...
My son's PDA is an M249 SAW.
|
|
|
|
|
Is it a .reg file, or the actual registry (ntuser.dat)?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
In my case, it's a .reg file.
C. Gilley
Will program for food...
My son's PDA is an M249 SAW.
|
|
|
|
|
No why not just open it with Notepad (or equivalent)?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Well, most of it is gobble-dee-gook.. mix of binary and ascii. Dangerous to edit such a beast in notepad. Or, am I missing your point entirely?
C. Gilley
Will program for food...
My son's PDA is an M249 SAW.
|
|
|
|
|
I've never touched Windows CE so its .reg files may be different than what I've worked with on desktops. In either case, the actual registry will indeed be gobble-dee-gook. What does the very beginning of your .reg file look like?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
I think the default action for the registry is to "add" it's content to the existing registry.
you can open the file in a text editor, it's a text file.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
I admit I have not looked at the registry for my xp-pro system. However, the ce registry is most definitely binary, but you can see some text.
C. Gilley
Will program for food...
My son's PDA is an M249 SAW.
|
|
|
|
|
Can u tell me from were to start learning WinCE
I am a VS.6 VC++ programer
Do i start learning .NET ??
or
shall i study EVC++??
Do u know any online resource??
Thank you in advance
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Vikas,
My application is almost all mfc with bits and pieces of Win32 and ActiveX controls. With the exception of some very specific CE issues, WinCE is pretty much Windows. Some things you need to keep in mind are the user interface aspects of your target device and some os issues (less memory, etc.). Mainly common sense.
If you start with CE 4.2+, then you have the option of .net development.
chg
C. Gilley
Will program for food...
My son's PDA is an M249 SAW.
|
|
|
|
|
I have a program that uses Microsoft's WinSNMP to send traps to a configured receiver when certain error conditions occur. This program was pretty much cobbled together using sealing wax and duct tape, as I know very little about SNMP in practice, but it works well.
Now someone told me that they would prefer to use SNMP informs instead of traps because the latter, based on UDP, have no assured delivery, whereas the former have an aknowledgement/retry/timeout mechanism to "guarantee" delivery.
So I googled on SNMP inform till the cows came home and found a few places that describe what SNMP informs are in a general sense but none that shows exactly how to accomplish it, particularly with WinSNMP. My impression is as described below, and my question to anyone who knows better is whether my impression is correct. If not, can you please point me to how I can accomplish this with WinSNMP?
My impression is that SNMP informs basically consist of the sender sending the trap just as it always did, but saving a copy of the message sent until it receives the acknowledgement, or until the sender, independently of WinSNMP, determines that it time to resend. It appears to me that the acknowledgement is not something handled in WinSNMP at all, but is just any kind of message that the sender of the trap and the receiver mutually agree on that the receiver sends back to the sender to tell him that the trap was received. In other words, it appears to me that SNMP inform is not something supported by WinSNMP as distinct from a trap, but is nothing more than a mutually agreed upon conversation between trap sender and receiver.
Is this true?
Thanks for any information.
|
|
|
|
|
BambooMoon wrote: Now someone told me that they would prefer to use SNMP informs instead of traps because the latter, based on UDP, have no assured delivery, whereas the former have an aknowledgement/retry/timeout mechanism to "guarantee" delivery.
Instead of UDP (unreliable delivery), I think you'll want to use TCP (reliable delivery).
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
SNMP is built on top of UDP, not TCP. I'm not looking for an alternative to SNMP. I'm looking for information on how to use SNMP informs. Thanks anyway.
|
|
|
|
|
BambooMoon wrote: SNMP is built on top of UDP, not TCP. I'm not looking for an alternative to SNMP.
Fair enough.
BambooMoon wrote: I'm looking for information on how to use SNMP informs.
I've not ever come across that term. Does this help?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Thanks for the web site, but unfortunately it uses some product other than Microsoft's WinSNMP. It is interesting in that it claims that to use informs, you just set a flag in the outgoing trap that says it is an inform (and then the document glosses over what it means by handling the acknowledgement). But it doesn't say who decides what goes in the acknowledgement, how the sender of the trap knows that a given acknowledgement is for a certain trap (since it may have sent hundreds of traps all awaiting acknowledgement) or anything else.
Thanks, but I need WinSNMP info.
|
|
|
|
|
I develop a client whith subversion API and Svncpp, but when use the object:
svn::Path
I get this error message :
libneon.lib(ne_dates.obj) : error LNK2001: unresolved external symbol __ftol2
I don't find the origin of error, help please
|
|
|
|
|
|
|
I have to create a simple appliction
that will have to send & receive data
from the USB port .
Can anyone help ??
Thank you
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|