But are they the correct paths? Are they absolute or relative?
AM giving absolute paths of the DLL and the .exe of my project in the Tools-options-directories and also filling up the System PATH vairable with the same paths, though am still getting that error.
do you have an idea, what are the general locations the loader looks for while executing an .exe ?
I usually try to set the error code to display errors when this happens. SetErrorMode(0) so that all errors are displayed. When all errors are displayed, Windows will tell you which DLL is missing or exported function is not found that your application is trying to load or find. Usually, an application has the error mode set to something other than 0 because it is 'handling' the errors.
Try that and see if you get more information from your program.
People that start writing code immediately are programmers (or hackers), people that ask questions first are Software Engineers - Graham Shanks
Look for winerror.h (in VC6, open a new text document, type winerror.h, select it, right-click on it and select "Open document") for most error codes you will ever encounter. Path not found is exactly that - like trying to open C:\BadDir\MoreBadDir\File.txt when the BadDir directory does not exist.
-=- JamesIf you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
Lets say that I want to see wich way of output is faster: "printf" or "cout". I would writte something like this:
int main( void )
time_t begin, end;
begin = time( NULL );
unsigned long i;
for ( i=0 ; i<4294967295 ; i++ )
printf( "%d\n", i ); // This is for printf. If I was testing cout it would be
// cout << i << endl;
end = time( NULL );
printf( "IT TOOK: %d\n", end - begin );
My intention is not to test wich of those is faster but to have an algorithm to test the speed for any application. The problem with this implementation is that it is not very precise; computers work a lot faster than what can be measured with seconds. Any suggestions?
When I would like to know how much time it takes to execute a particulary piece of code and this piece of code is very short I read the CPU time stamp twice. (Assuming that you are running a pentium class processor) The CPU time stamp is a 64 bits counter that runs on the same frequency as your CPU does. So with this you ll be able to measure very short times very accurate.
Oke this function is written in asm for the Borland compiler.
Hi all, i want to lock a region of a file over the 32bits limit 2GB. With _locking i can't, because it only supports 32bits filesize. Does anyone know how to lock a file in a position greater than 4gb?
Is your file already open? If not, you can open the file with a exclusive lock for the entire file using OF_SHARE_DENY_NONE. See the <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/openfile.asp" rel="nofollow">OpenFile</a>[<a target=_blank title='New Window' rel='nofollow' href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/openfile.asp">^</a>] API.
Hope this helps.
Behind every great black man...
... is the police. - Conspiracy brother
Am new to VC++, and am developing a simple software with a dll, and an .exe accessing the functions of this dll.
Am statically loading the DLL into my application,and the log shows the library being loaded successfully. However when I try to execute(debug) the application(.exe), it crashes out by flashing a Developer Studio error message saying: "Could not execute:Path not found(win32 error 3)".