|
Seriously though, how can three different DLLs export functions with the same exact name? Please tell me you are not the author of those DLLs. If you are, you need to fix it there and not where you consume it.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Rajesh R Subramanian wrote: Seriously though, how can three different DLLs export functions with the same exact name?
It all depends on the requirements! Seriously - I've got a system that extracts symbol information (variable names, addresses, types etc) from debug information. I support several different flavours of debug information (Microsoft PDB, Dwarf1, STABS) and the parser for each different type of information is contained in a separate plugin DLL. Each of these DLLs exports a routine called GetParsers , which gives you access to each of the (singleton) parsers in the DLL.
Similarly, COM DLLs have a similar structure (DllRegisterServer[^], DllGetClassObject[^]).
So, yeah, it's a valid design pattern - whether or not the OP actually meant to do that is another matter, of course
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Stuart Dootson wrote: So, yeah, it's a valid design pattern - whether or not the OP actually meant to do that is another matter, of course
Which, I was pretty much worried about. I also doubt that he just needs overloaded functions (and couldn't keep 'em all in one DLL), so he wrote 3 DLLs, but to get stuck while trying to consume it. All are assumptions though.
OT: BTW, I ran into trying to debug a release mode binary and it took me 10 minutes to figure that out. I just happened to remember the conversation we had the other day.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
hi stuart thanks a lot,, i luk in to that,, (its late night here,, im leaving)im quite new so need to cover ur suggestion in detail
hi rajesh, thanks for you too for the reply,
actually the 3 DLLs are the c middleware i got that from the customer, and all three are for different language support, so if i select German, My application ll select the 1st first DLL and its functionality to process the text-contents, if i select the French , then 2nd DLL, if its English then 3rd DLL,. I have no rights to change these DLLs
-regards
aravind
|
|
|
|
|
thanks stuart,,
it really worked the way u suggested,
thanks a lot,
thank you rajesh for responding to the post
-regards
aravind
|
|
|
|
|
In C# you can tell the compiler not to expand escape sequences in string literals by prefixing the string with an @ symbol:-
string test = @"C:\test.jpg";
Is there an equivalent notation to do the same in VC++ ? (2008)
thanks
Jon
|
|
|
|
|
use double backslash like "C:\\test.jpg"
|
|
|
|
|
You can do it the hard way.
char test[] = { 'C', ':', 92, 't', 'e', 's', 't', '.', 'j', 'p', 'g', 0 };
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Nope (in fact the '@ improvement' is the main reason to leave C++ in favour of C# ).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
The [i]main[/i] reason? I can think of several more...
|
|
|
|
|
Well, you're right: you may also safely miss the semicolon at the end of a class declaration...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Blasphemy
Learn from the mistakes of others, you may not live long enough to make them all yourself.
|
|
|
|
|
In bad mood, today?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi,
after copying a specific phonebook file to the standard location the network connections folder doesn't update until a refresh (F5) is forced. I tried this programmatically with the following code:
PIDLIST_ABSOLUTE pidl;
SHGetSpecialFolderLocation(NULL, CSIDL_CONNECTIONS, &pidl);
SHChangeNotify(SHCNE_UPDATEDIR, SHCNF_IDLIST | SHCNF_FLUSH, pidl, NULL);
CoTaskMemFree(pidl);
Unfortunately this doesn't work. Any idea how to force the shell to update it's network connection folder?
Kind regards, h
|
|
|
|
|
I alse meet this kind of question. I want to ask too.
Is there anyway to force Shell to update "Connections" folder's view?
Thank you.
|
|
|
|
|
Hi,
I have a char array with 2 elemts.
<br />
char c[2];<br />
c[0] = 0x10;<br />
c[1] = 0x06;<br />
I want a string that will hold "1006".
How can I do that?
Thanks.
|
|
|
|
|
|
char str[5];
sprintf(str, "%02X%02X", char[0], char[1]);
«_Superman_»
I love work. It gives me something to do between weekends.
modified on Wednesday, May 20, 2009 2:12 AM
|
|
|
|
|
|
I see a flaw in your code (I supposed supeheroes flawless... ).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Oooops.
Ahem! Actually I leave that to the compiler.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
char szData[] = "1006";
or
char szData[AnySizeGreater4] = "1006";
|
|
|
|
|
Good one.
Simple and nice.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Hi ,
I have created an Application in which I am showing a dialog box on a button click. The window is getting populated but it is not focused when it gets populated. The parant window which was in focus after populating this dialog box ..still focused..
Which property should i set so that my newly populated window will get focused.
|
|
|
|
|
How are you showing the dialog box?
Is it modeless, model or system modal?
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|