|
umm... you have a capital on Void in the definition of GetNumbers?
|
|
|
|
|
Thank you. Sorry for the dumb question. Like I said, I am very new to this.
|
|
|
|
|
It would help to know what the output is, but (a+b+c)/3 is integer arithmetic and the decimal part of the answer will be truncated. Try using "float"s instead of "int"s
The maximum characters for the signature is five hundred. I was wondering how long a five hundred characters message would be, so I decided to make my signature 500 characters long. I'm sure if I had some cool html stuff in my signature, I could eat up five hundred characters, but just typing five hundred characters takes quite some time. The trick I think is finding something to say, but I'm usually a man of few words. So I guess I'll tell you what I've discovered is the secret to life. It
|
|
|
|
|
Thank you, I included float and it works much better.
|
|
|
|
|
maybe you should try acquiring each number one at a time within your void function. Also, what are you including?
|
|
|
|
|
I really appreciate the tip. I put using std because I don't know when not to use it , so I just put it in.
|
|
|
|
|
I'm writing an activex, and I need a method that return 3 values, (a string and 2 longs).
I will use the activex in Visual Basic.
What kind of return should I use?.
Could I return an object?.
if I can, how I do that?.
Any other idea??
Thank you.
|
|
|
|
|
this URL might help http://www.kbalertz.com/Feedback_177218.aspx
|
|
|
|
|
Hello. I once saw a piece of code, which used fprintf instead of send(), to send data via winsock. How can I "convert" my socket-handle into a file-handle, usable in the fprintf-function ?
Thank you.
|
|
|
|
|
Does anybody know of any utilities that can be used to convert from Borland C++ Builder 1.0-3.0 to Visual C++ 6.0/.Net. The company I work for has many products that must be upgraded. I hate to start from scratch if not necessary. Thanks for any info.
Bill Miller
|
|
|
|
|
I know of no utilities, but would advise you to create the VS projects/solutions from scratch even if there were. In the past I've done way to many cross compiler "ports" (and even backward ports from VS 4/5/6 to VC++ 1.52c and even a "port" from OWL to MFC.)
The OWL to MFC port was the most difficult, especially since at the time, MFC didn't support reflection but OWL did. (For the record, everything else was easier in MFC and Visual C++ 1.52c was much more stable.)
If you need assistance, I'm available for moonlighting.... (I'm one of those sickos who actually likes doing this, within reason [like my current job where we're just holding our collective noses and sticking with the convoluted combination of C, C++, MFC, STL, rolled-their-own-bizarro-partial-clone-of-ATL and mystery code.])
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Hi Joe,
Thanks for replying so quickly. I will pass your suggestions along to the powers that be, and will keep you in mind. have a good weekend.
|
|
|
|
|
Hi,
I am converting an VC 6.0 C++ DLL to ATL VC 7.0 DLL. I first converted the DLL to a VC 7.0 non-managed COM DLL. I tested this and everything works fine. Then I proceeded to add an ATL COM+ class to the project. The compiler compiles w/ no errors however it errors out when trying to regsvr32 the DLL w/ the following message...
[Performing registration
Project : error PRJ0019: A tool returned an error code from "Performing registration"]
What does it mean ???
Thanx & Regards,
Paul
Paul
|
|
|
|
|
I have exactly the same problem. If you look under the linker settings you probably have register output, as you would for an ATL project. Thing is this sets the post build event to run regsvr32 /s /c outputname. The ide interprets no output on the command line as being an error,. But /s silent was specified, hence why its confused. So in fact, it did register successfully, but took its silence as meaning something was wrong. Don't get me started on the /c, as its not even an option on regsvr32!
Personally can't see any way to fix it other than turning it off. So you have to regiser it yourself. Possibly, though have not tried it yet, is to pass it to a bat file, to echo something and keep it happy.
All I can say is VC++ team, fix this as its crap!!!!
If you allow me to rant on, another problem I've had recently is that even though I specify link to the Multithreaded debug dll version of the CRT, it will link to both the debug and release versions, giving me problems with heap allocation problems. Arrgh. You have to force it not to link. See LNK4098 I think.
And finally, wait until you see VS.NET get its knickers in a twist with Source Safe. Its really quite sad. Its like a whole load of stuff they have just not tested.
|
|
|
|
|
I wonder how I can find paint region of every window. You know that there a lot of windows with custom form (elipse, triangle, etc.).
Best regards,
Alex
|
|
|
|
|
Try Cwnd::GetWindowRgn(), the parameter is a HRGN
|
|
|
|
|
Hi, i need source code about TimeStamp Protocol ( i think RFC 3161 )
can anyone help me ? Any link with source code ?
thanks
luis
|
|
|
|
|
Luis Ricardo wrote:
Any link with source code ?
No, but have you tried Googling for it?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
|
You might consider e-mailing the authors of the RFC. They might have some code, or know of a link that does.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Try sourceforge.net:
http://sourceforge.net/projects/sipstack/
or
http://sourceforge.net/projects/timestamping/
Huey
|
|
|
|
|
In order for Luis to benefit from this, your reply should be directed to him.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Re-send:
Try sourceforge.net:
http://sourceforge.net/projects/sipstack/
or
http://sourceforge.net/projects/timestamping/
Huey
|
|
|
|
|
|
I want to convert a integer value to a CString.
I have been using 'itoa' or 'sprintf' to convert integer value to char string then convert the char string to CString.
Is there a better way to do it?
|
|
|
|