|
the .pdb file does mean that i have a debug version of this file too?
cause (i'm not sure if i'm right) i only know the .pdb from my projects (well it could be a realse version of the dll too, but it means i should have access to the source code otherwise it would be a bit difficult to get the pdb file, not?)
thx
|
|
|
|
|
A .pdb file can be generated for a release or a debug build. The people who built the DLL would have had to setup their compiler to create one however (and you'd have to have a copy). As one of the other posters mentioned, if you know your x86 machine code you could disassemble the .DLL and figure out the parameters.
Steve
|
|
|
|
|
Hi,
I hope if you have release version of DLL(Only DLL file no others like lib,def etc), then you cannot see the funtions and paremeters of DLL.
If your DLL is Debug version, then you have a chance to reengineering the DLL and get source code. Using this we can see what's inside the DLL.
Best of luck
regards
Vallikumar A
|
|
|
|
|
hmm
what about disassembly?
i just found pe explorer and it can disassemble every dll i tried
(just to make it clear i don't really want to reengineer the code of the dll and hack something or such stuff, i don't even know how this works, but
wouldn't it be possible if i disassemble a file, know the function names and the function entry points in the dll
i could have a "clue" of the parameters if i have a look at "push" assembler commands before such a function is called?
i mean if a pointer is pushed it could mean something like void*
or a eax value is pushed it could mean int
i know i can't be 100% sure, but with the above method (i don't even know how i could do this, but just for fun ) i can have a clue of the amount of parameters and a bit of the type it could be
and i think it could be enough to not be wrong with this clue
i mean, if i use void* altough the dll function expects a char*, it would be somthing like try and error
but i can be sure its a pointer or an int
? or maybe i'm completely wrong?
thx
|
|
|
|
|
hi
i want a simple graph control to draw a linear and smooth graph.i am using VC6 and MFC.so can anybody post related links or info..
|
|
|
|
|
I - years ago(!) - saw something called "Formula One", which had two ActiveX-Controls, one for Excel-like Worksheets and another for Diagrams.
I don't know if these controls (or even the company that made them) are still around, but I'd try a quick googling.
There are Standard-Diagram-Controls as well, which SHOULD be available on your system. Just browse around a little, I think they might suffice for a simple linear graph. You might have to poke around to use them, though.
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
Look on this website, there is a section with some graph controls (in misc controls IIRC). If you don't find what you need, I also developped a graph control for my own and I can send you the source files. I plan to write an article here but I hadn't find the time yet
|
|
|
|
|
hi
Cedric Moonen wrote: I also developped a graph control for my own and I can send you the source files
it wud b very kind of u if u could mail the source code to jamesrocky@maktoob.com
|
|
|
|
|
I voted you 1 for use of SMS-text. (Your initial post was fine.)
Others may disagree, but I think "it wud b very kind of u if u . . ." belongs on some teen dork site.
|
|
|
|
|
NormanS wrote: I voted you 1
i don't understand this voting concept at all
|
|
|
|
|
vamshin wrote: don't understand this voting concept at all
At least he was kind enough to explain why the low vote.
Basically a lot of people are getting tired of the short hand abbreviations, it makes your post harder to read and understand. It’s important to remember that not everyone is a native English speaker and your short hand comments maybe misinterpreted.
There isn’t any need for it here.
ZeePain! wrote: This seems like one of those programs that started small, grew incrementally, building internal pressure, and finally barfed all over its source code sneakers. Or something.
thedailywtf.com[^]
|
|
|
|
|
Voting is a system where CodeProject members rate a post or an article, thereby showing whether they think it is a "good" or a "bad" post. Voting is useful for articles, but some people rate posts as well. Voting on articles is done for technical reasons (so if you see 2 similar articles, but one is rated 2.2 and the other gets 4.5, you would know the article with 4.5 is regarded as "better" by CodeProject members.)
I don't think the vote you get matters at all for posts (if you actually get any vote at all - most posts don't.)
I gave you a low vote because I am a difficult bast*rd who hates SMS abbreviation, and the laziness or coolness it implies (particularly when my favourite wife uses it.)
|
|
|
|
|
Hi,
I have been working on an MFC application. Now I want to make another application with broader scope with different components in it - one component being the application I have been developing.
I have seen some samples, where there is one .dsw file and many .dsp project files in it. So when I open the dsw I can have many projects in it and I can compile either those projects alone or compile the whole workspace. But no idea how to do this.
Can anyone point me to some write up about this or some technical name for such projects so that I can search and find out.
Please HELP!!
- KK
|
|
|
|
|
|
Create a blank workspace with no files added to it.
Use the Project>Add To Project>Files and drop the files that you were using earlier. That's all
|
|
|
|
|
Select the Add to Project option from the Project menu. Select New. Click the Projects tab. Add your new project here. Rather than adding more files to a single project and workspace, this will create separate projects within the same workspace.
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
I delete all the files/directories in a directory recursively in my application, and since that takes time I want to show a progress bar.
To implement the progress bar I first need to scan the directory to know how many files are there and then in the second pass I progress the bar appropriately every time I delete a file/directory.
Is there a way to quickly find out how many files, including those in the sub directories, are there in a directory? If there is a way other than explicitly walking down the directory using FindFirstFile/FindNextFile, I would like to know, since this is causing the time to delete almost 1.5 times the time spent.
thanks!
|
|
|
|
|
There is no need to make two passes. While counting, add the list of files and folders to an array of some sort and delete them from there.
You can always use SHFileOperation() . It uses recursion and a progress bar.
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
Hi
pls send your mail id to dingudikka@yahoo.com
I will send the sample source code to count the no:of files and folders in a drive
regards
Vallikumar A
|
|
|
|
|
hi guys,
we have a game server/written in c++/ and an application/written in erlang/ simulating thousand of users playing on the game server.
The server manages connections using IO Completion ports, but when launching many/thousands connections/ against the server it starts dropping connections - the erlang application reports that the socket is closed, while trying to write to the socket.
How can I get the reason for closing the socket on the server side - with GetLastError function i'm getting just the error code of the io operation attempt on the socket. But I need the error for socket closure, please help!
All ideas are welcomed,
Thanks
yani
|
|
|
|
|
socket closure causes
1. completion of a queued read operation with 0 bytes(gracefull close) and this is no error.
or/and 2. GetQueuedCompletionStatus returns false. now GetLastError returns the error of the queued operation.
U gotta mungle with the OS's settings to allow more sockets and give WSAAccept/accept a big queue.
|
|
|
|
|
Hi,
I am making an asynchronous ftp connection and then I want to list all files in the current directory. Here is my function
BOOL
StatupController::StartupSyncSoftware( StationType _stType ) {
ClsArchive *UnZipper;
char pszZipFile[64];
char pszDestPath[64];
char pszRemoteFile[64];
char pszFtpServerAddress[64];
HINTERNET hConnection =NULL,
hFtpConnection =NULL,
hDir =NULL;
BOOL bResult;
HINSTANCE hOcx;
FARPROC lpfn;
WIN32_FIND_DATA Data;
BOOL bRes;
DWORD error;
UnZipper = new ClsArchive();
switch( _stType ) {
case SatelliteStation:
strcpy( pszZipFile, "C:\\Flightvision.zip" );
strcpy( pszDestPath, "C:\\" );
strcpy( pszRemoteFile, "Flightvision.zip" );
strcpy( pszFtpServerAddress, "192.168.1.38" );
// open ftp connection
hConnection = InternetOpen( "FVStartup", INTERNET_OPEN_TYPE_DIRECT,
NULL, NULL, INTERNET_FLAG_ASYNC );
InternetSetStatusCallback(hConnection,FtpCallback);
if( hConnection == NULL ) return FALSE;
hFtpConnection = InternetConnect( hConnection, pszFtpServerAddress, INTERNET_DEFAULT_FTP_PORT,
"anonymous", "pass", INTERNET_SERVICE_FTP, 0, 0 );
if(hFtpConnection == NULL) return FALSE;
// find latest version
//DisplayDir(hFtpConnection,INTERNET_FLAG_NEED_FILE);
hDir = FtpFindFirstFile(hFtpConnection, TEXT ("*.*"),
&Data,
INTERNET_FLAG_NEED_FILE,
0);
if(hDir!=NULL) {
do {
bRes = InternetFindNextFile(hDir,&Data);
} while((error=GetLastError())!=ERROR_NO_MORE_FILES); // ERROR_IO_PENDING 997
}
// close connection
InternetCloseHandle(hDir);
InternetCloseHandle(hFtpConnection);
InternetCloseHandle(hConnection);
case BaseStation:
case WorkStation:
case NotAssigned:
default:
return false;
}
the problem is that the InternetFindNextFile(..) function always returns FALSE and the last error that I gen with GetLastError() is ERROR_IO_PENDING. I did not start any lengthy operation before that, this is way it doesn't make much sence to me. I also noticed that the FtpCallback function is never called and, of course, I think this is OK since no operation has been started yet. Can somebody give more insight on this and help me figure out why the directory listing isn't working correctly?
Thank you very much in advance.
A. Kafazov
|
|
|
|
|
akafazov wrote: the problem is that the InternetFindNextFile(..) function always returns FALSE and the last error that I gen with GetLastError() is ERROR_IO_PENDING.
Which indicates that the request has been made asynchronously, and your application will be called back with INTERNET_STATUS_REQUEST_COMPLETE when the function has completed.
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
However, the callback function is never called with INTERNET_STATUS_REQUEST_COMPLETE or any other flag. The situation also indicates that there is an outstanding operation in progress but there isn't. It's all very weird and I don't understand why.
A. Kafazov
|
|
|
|
|
I am using NetShareGetInfo and i am getting a NERR_NetNameNotFound.I am using the folder path as the share name e.g "C:\\WINNT\\profiles\\chikomok\\My Documents\\Open_Shares" and the sever is the remote P.C were the program is running
Can some please tell me what the problem could be.
Kelvin Chikomo
|
|
|
|