|
those variables are not known in Visual c++,
I have an error undeclared variable:
my sentence is :
dbinit.AddProperty(DBPROP_INIT_DATASOURCE, getComputerName() );
I insert these libraries :
#include <stdlib.h>
#include <stdio.h>
but the error is there,
what to do ?
|
|
|
|
|
Hi, i have some troubles with a CListCtrl... I want to do a Report Clistctrl, like an exel, with 5 columns and unlimited rows. Well,my problem appears when i need to put 2 or more lines in one possition of the ClistCtrl, then my question is, is it possible? it means, can i put a paragraph with 60 characters in each line? or the only thing configurable is the colum width...
Thanks in advance, to see if somebody can remove to me from this doubt. If that cannot be done with the CListCtrl... what do you recommend to utilize?
Bye!
|
|
|
|
|
David_27 wrote: Hi, i have some troubles with a CListCtrl
don't we all ???
codito ergo sum
-- modified at 8:36 Tuesday 17th January, 2006
|
|
|
|
|
|
yeah, this two exemples are good, but, mi problem is to write two lines or more lines in one position, it means, i want to write in m(1,1)= "12", in m(1,2)= "Hi all of you, i have problems with Visual C++" in two lines, not in one, i dont' want my position have more than x caracters per line, but shows all the text in some lines, not show "...". Maybe my english is very bad, and i'm sorry, if you don't understand, i can improve my explanation.
|
|
|
|
|
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
|
|
|
|