|
Please help me with this stupid problem.
I tried to load a dll dynamicly. I used LoadLibrary in my function. In this function I first diplay a CFileDialog to open some datafiles. After that i load my dll. But LoadLibrary return NULL. When I place my LoadLibraray before CFileDialog it seems to be OK.
Can you help me with this problem?
I the future i plan to load the library in a working thread. I tried this although but the result of LoadLibrary was NULL!
|
|
|
|
|
Is your DLL in your application directory? When your app is run, the current directory is set to your app directory (usually). Since LoadLibrary() looks in your app directory first, it find the DLL no problems. However, if the user changes the directory in the file dialog, the current directory is no longer set to your app directory, therefore LoadLibrary() can not find the DLL.
The best way to solve this is to specify the complete path in the call to LoadLibrary() .
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
thank you for your help. I tried to specify the complete path in loadlibrary but the problem is still there...
When I try to load a different dll in the same codepassage all worked fine. The problem still excists in the first dll (but only in this passage!).
Do you have an idea?
|
|
|
|
|
Post the relevant parts of your code and I'll see if I can find anything.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Hi,
I want to nest splitter windows, but I can't find any documentation on how to do that.
Before I'll try to write a derived class that supports nested splitting, is there anyone who can tell me where I can find information about nested splitter windows?
many thanks.
When elaphants fight it is the grass that suffers.
|
|
|
|
|
Bob Stanneveld wrote:
I want to nest splitter windows,
I presume you are talking about MFC? If so, AFAIK this isn't the way Microsoft wants you to do it (meaning, it's close to impossible).
Splitters are IIRC only handled by frame windows. Read that sentence again and you see the problem.
If you need nested splitters (which seems quite awkward to me, but perhaps you indeed have found a legit use for it) I think you need to do some programming for yourself to work around MFC deficiencies.
Disclaimer: I might be wrong, why you shouldn't read the text above as some absolute truth.
|
|
|
|
|
Thanks, I guess that I'll be busy this holiday
|
|
|
|
|
|
I'm using the class library provided with visual C++ 6.0.
Maybe I should study some WTL.
thanks a lot.
|
|
|
|
|
|
thanks
|
|
|
|
|
Hello I have a small question that maybe you could help solve. I am using a CHtmlview in my application and I want to display a FTP directory on another computer so I just called the Navigate2(ftp://myftp); and this all works great, the only problem is that when the user clicks on a folder it open a new window and no event is thrown, meaning I tried catching this but could not. Have any ideas?
Thanks,
gil
|
|
|
|
|
This[^] is driving me insane
I just want a wofstream to stream out Unicode i.e. the following code to work the way you would expect:
wofstream outputFile( "test.txt" ) ;
outputFile << L"fsck!" << endl ;
instead of converting everything to be narrow first!
I'm thinking maybe I can imbue the wofstream with a locale/facet that doesn't do the narrowing of the data but I'm not having much luck.
Surely someone has hit this problem before. Any ideas...?
"Sucks less" isn't progress - Kent Beck [^]
Awasu 1.1 [^]: A free RSS reader with support for Code Project.
|
|
|
|
|
Taka Muraoka wrote:
I just want a wofstream to stream out Unicode
Since the standard knows nothing about Unicode, the standard is not going to help you.
My suggestion would be to try to create a 16-bit-handling streambuf and instantiate an ostream on that one. I'm absolutely NOT sure this will help you, but at least one suggestion is better than banging ones head against the wall.
|
|
|
|
|
Banging my head on the wall? If only I had been doing just that
It's not really a question of being Unicode-aware. If a basic_ofstream is templated using 16-bit characters, then it should write out 16-bit characters, fer crying out loud!!!
Anyway, I've just about got something going[^] although it's taken me *ages* to get it working under Stlport.
Boost has a submission[^] open that looks much more elegant but doesn't compile under VC6
This is one *major* can of worms
"Sucks less" isn't progress - Kent Beck [^]
Awasu 1.1 [^]: A free RSS reader with support for Code Project.
|
|
|
|
|
Hi, i'm currently learning programming with visual c++. I am using the active X ADO data control in my dialog to link up with my access db. I need help with the commands used to access the features of the the adodc. For example, how can i access the recordsets from the database without the use of active x(textboxes) controls that links to the datasource. If i were to use eof to determine if the pointer is at the last record, how should i go about writing the code?
|
|
|
|
|
Not to insult you or anything but this question cannot be answered with just a few lines of text. Database programming is involving and you should read some texts and check out some examples first. MSDN has some good and simple examples. Check out this link [^] and if you're not satisfied with it, search for ADO tutorials in MSDN.
// Afterall, I realized that even my comment lines have bugs
When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
|
|
|
|
|
|
Thanks, i'll try to look through the links.
|
|
|
|
|
i have a rowset to be update,insert,delete, and i want to known all modify infomation about the rowset,Is ole db or odbc support this?
or any idea else?
thank you!
i am realfly8)
|
|
|
|
|
|
I'm learning about vector STL containers, is this also considered an array?
|
|
|
|
|
No. But it can do many of the same types of things that an array can, and a bit more. Vectors are dynamic arrays, in that they can grow as you add elements to them. They are similar to arrays in that they provide the subscript operator[] (you can use standard array notation).
Use a vector if your code might throw exceptions.
Use a vector if most of your inserts will be at the back, and few near the front (otherwise consider deque or list).
Use a vector to support better initialisation.
Always prefer standard containers, list, vector, deque to arrays. less code, cleaner code, better support for copying - and in the end easier to work with.
[edit]Most vectors are internally implemented as arrays, but that shouldn't matter to the end user.[/edit]
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
Andrew Walker wrote:
[edit]Most vectors are internally implemented as arrays, but that shouldn't matter to the end user.[/edit]
IIRC a vector must be implemented as an array, because &(vector[0]) is a legal expression to get a C pointer to the array. (ref. herb sutters Effective STL)
(Strings, OTOH, need not)
"Der Geist des Kriegers ist erwacht / Ich hab die Macht" StS
sighist | Agile Programming | doxygen
|
|
|
|
|
peterchen wrote:
IIRC a vector must be implemented as an array, because &(vector[0]) is a legal expression to get a C pointer to the array.
Yeah, I believe that is correct
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|