|
Hi all,
does anyone know if there is a parser for VS 6.0 projects (and VS7 while we're at it) to list all the header files that have been #included?
I need to know what I header files I need to package up to go along with libs.
Thanx
Jubjub
If there's one thing I've learned, it's that life is one crushing defeat after another until you just wish Flanders was dead. - Homer Simpson
|
|
|
|
|
How about this article, on this very same website!
http://www.codeproject.com/useritems/includefinder.asp
|
|
|
|
|
Thanx Blake,
I did ever combination of search I could think of on CP. That page didn't turn up. Glad you helped me out. Really appreciate it.
Thanx
Jubjub
If there's one thing I've learned, it's that life is one crushing defeat after another until you just wish Flanders was dead. - Homer Simpson
|
|
|
|
|
Hi i wrote a program using the mschart control but when i send the program to other people the charts arent display is there some sort of dll or something that i need to include with that for them to be able to see the control
|
|
|
|
|
Looks like the MSChart Active-X control isn't registered on the target machine. You should regsvr32 it as part of your installation.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
i have a copy button and i need to copy data from 2 combo box's and 2 edit box's and cant find any good info on how to do it.
|
|
|
|
|
What do you mean by 'good' info ? MSDN is bursting with this stuff. From memory, GetWindowText is the function to get the text from an edit box, although there's a lot of cobwebs in that part of my brain.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Hi all,
I am workin on changing the format of any given image into bmp format..for that i'm having all the header details of the original image file. But I don't know how to program it using the header file information given...
here is an example of the header file information given....
IFFCL_GRAY { <br />
bits: 12 <br />
byte: @0=0x00 <br />
byte: @1=0x00 <br />
byte: @2=0x00 <br />
byte: @3=0x00 <br />
width: (@6=ishort)/2 <br />
height: @4=ishort <br />
start_offset:128 <br />
line_offset:width*2 <br />
datatype: lsb_msb <br />
} <br />
any form of help is appreciated...
thanks in advance,
Pavan.
|
|
|
|
|
I recommend CxImage (@codeproject), searching www.sourceforge, or trying a comercial library.
Any image format they do not recogise you'll have to convert you self.
Good Luck!
INTP
|
|
|
|
|
I hope CxImage won't revognize this format and anyway i will try it again, but i don't think it can do it...
If I've to code it myself...how can I start doing it....
|
|
|
|
|
I am sure CxImage will not recognise that particular format, I don't even know what language thats in.
I searched for "datatype: lsb_msb" and found 1 reply, refering to Princeton Instruments ".SPE" Image file format, in the "Image-Pro User's Group Mailing List Archive".
The general idea expressed was:
Given a program that can open the image file (for display/edit), you can then export it via the clipboard as a .bmp.
I beleive the software he was refering to was "Princeton Instruments WinView ... for digital imaging"
INTP
|
|
|
|
|
Hi John,
I've tried opening the files in Princeton's Winview software, but it is opening it and is giving an error as 'unknown file format'. I just want to know whether we can open an image file in C++, if we know the image header information.
Anyway these people are also developing their programs in c++ like languages....then how r they able to process these new file formats. Lemme know if you know anything about this and I appreciate your help
Pavan.
|
|
|
|
|
You can open up any file, but C++, like any other language, knows nothing about file headers. If you have the file fomat documentation then you should have no problem reading it and converting it to a bitmap; accept for all that code writing. Well maybe some trouble, depending on the type of data stored in the file.
Good Luck!
INTP
|
|
|
|
|
If you know, can you help me by giving me an outline on this, like how to proceed in programming, for reading the file and if its header information is useful in anyway in programming and how to save a file in a known format.
Till now I dealt only with text files for most of my programming stuff.
Thanks,
Pavan.
|
|
|
|
|
Help me about the above Topic.
Suman Kumar M V
|
|
|
|
|
Suman,
you may want to put in something a little more specific. I think most people won't answer because they have no idea what you actually need. What do you want to know about USB interface in VC++?
Jubjub
If there's one thing I've learned, it's that life is one crushing defeat after another until you just wish Flanders was dead. - Homer Simpson
|
|
|
|
|
Im writing a front end for a console prog in VCPP and am having a hell of a time trying to pass params. For some reason whenever i use ShellExecute to pass params the programm receiving them interperates all params as a single param and fails (according to its log). If i use _execl it works perfectly only my app terminates for some odd reason.
Im a fairly experienced programmer and have just started out w/ windows programming. This is also my first windows app thatll serve a purposed btw
Heres the ShellExecute code that doesnt not pass the params correctly:
ShellExecute(NULL,
"Open",
"C:\\Program Files\\UT2004\\System\\ucc.exe",
"compress AS-Convoy.ut2",
NULL,
SW_SHOWNORMAL);
And heres the _execl that works but kills my app:
execl("C:\\Program Files\\UT2004\\System\\ucc.exe",
" compress",
"AS-Convoy.ut2",
NULL);
* note the space before " compress" if i leave out this space the called prog fails. ive tried the same thing w/ ShellExecute but it still fails.
If anyone has an idea about how i should go about getting ShellExecute to pass the params different or how i can stop _execl from killing my app id be very greatful.
Oi! Oi! Oi!
|
|
|
|
|
What results do you get with CreateProcess() ?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
I have a problem passing a pointer by reference to a parsing function. The function prototype is:
void ReadNode(Node*& nodeToRead);
which basically reads a node description from a parsing stream, and allocates memory for the new node accordingly. The node is NULL in case of invalid node description.
I'm using this function to parse scene nodes. The SceneNode class derives from the Node (abstract base) class.
SceneNode* nodeToRead = NULL;
ReadNode(nodeToRead);
I'm getting the following error:
error C2664: 'Betelgeuse::Parser::ReadNode' : cannot convert parameter 1 from 'Betelgeuse::SceneNode *' to 'Betelgeuse::Node *& ' A reference that is not to 'const' cannot be bound to a non-lvalue
I get the same error when using a pointer to pointer instead.
I don't understand why it doesn't work. Any explanation and suggestion would be greatly appreciated.
Cheers, blackmesa.
|
|
|
|
|
One solution is a pointer to a pointer.
Post the code you mentioned that takes in **. Post the code that calls the function and the essential parts of the function too.
Kuphryn
|
|
|
|
|
What happens if you explicitly cast nodeToRead to a Node* ?
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"
|
|
|
|
|
I got the answer to my question in another forum.
Basically a temporary Node* is created from the SceneNode* when I pass it to ReadNode(). Problem is, a temporary cannot be bound to a non const reference.
Everything works fine if I downcast to a Node* before calling ReadNode(). I will stick to that solution for now, and will refine my design only if I end up overusing rtti.
Thanks for your responses.
Cheers, blackmesa.
|
|
|
|
|
I've little experience in procedural programming, but I want to have good knowledge with OOP. I've read some books and articles about OOP in VC++, but what I still don't know is how to communicate with objects from a main application in Visual C++. For example to send text with CSocket through internet. I would like to know how to communciate with CSocket so I can send text through a computernetwork. CSocket is just an example, but for example I could name other objectcomponents like Bluetooth or serialport, etc...
I hope you guys can help me, some good links is also ok!
Thanx and peace!
|
|
|
|
|
It all depends on design requirements such as the amount of the data, speed, reliability, etc.
Kuphryn
|
|
|
|
|
Thanx for your reaction, but I need a start . There must be a standard protocol in VC++ to communicate from the mainprogram with objects.
I've seen some simple chatapplications where they use pointers to send data. In the mainapp there is a pointer to a CSocket object and the CSoscket object has a pointer to CDocument for example. But what I'm interested in is there must be some kind of a rule so you can communicate with other objects. Maybe I want to build in a mp3-player in my app, wahtever. So I hope you proud Wizzkids can help me out
|
|
|
|