|
CListCtrl does not support muliple rows as far as I know, sounds more like its time to switch to a grid, you can use one of the Microsoft Grids (which are pretty easy and simple) or MFC Grid control 2.26[^] which looks interesting (havnt tried working with it my self).
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[^]
|
|
|
|
|
hiho@ll
what i have:
a dll
what i want:
a list of every function available in the dll and the parameters each function needs (the return value would be cool too)
seems like i need something like "function prototypes" from a dll
the problem:
to retrieve the function names i think i will use pexport program cause source is available (i have to read the source, didn't yet)
but it only can read function names, but i need the parameters too
question:
1. how can i read parameters of a dll function if i only have the dll?
2. is there something like a dll file format, or a documentation how a dll works (dll header, dll symbols etc. at which offset in the dll files can i find what ...)
3. is there a simple windows function to retrieve this stuff?
thx@ll
|
|
|
|
|
ThinkingPrometheus wrote: a list of every function available in the dll...
This can easily be obtained by examining the PE file format, specifically the .edata section.
"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
|
|
|
|
|
You can't necessarily get the function parameters - in general you can't. If the exported names are mangled (they will contain "funny" characters) then you can, see the UnDecorateSymbolName API. If the functions are extern "C" d this information is lost. You can get this kind of information from the symbol file (.pdb) if you have one for your .EXE (or DLL).
Steve
|
|
|
|
|
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.
|
|
|
|