|
Thanks your awsome could you show me an example..
|
|
|
|
|
See here and here.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
I have an existing VC6 C++ application that I'm using to post http calls into a .NET web service. One of the methods on this web service returns a DataSet object which has pretty complicated XML; including base64 encoded binary blob fields. Has anyone attempted to create a C++ class that can emulate the C# DataSet class; and be able to parse that XML and provide accessors to the rows and column values? I am going to have to do this, but thought I would first see if there was any exising code I could make use of rather than re-inventing that wheel.
Thanks if anyone has a starter block of code they don't mind sharing.
Ron Ward
|
|
|
|
|
Is there any utility which converts VC++ code to C# code. I do not expect all conversions basic conversion will do such as class, property, method migration.
Thanks
Shyam
|
|
|
|
|
i believe no... you must rewrite all the VC++ Code into C#...
in fact you must redesign the code to get the best performance in C#...
|
|
|
|
|
What is the best was to get the modified date/time of a file ?
I'm using VC++6.0.
Thanks.
Elaine
The tigress is here
|
|
|
|
|
How about GetFileAttributesEx() ?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
or CFile::GetStatus() or _stat() or GetFileTime() .
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Thanks Ravi,
I'd seen GetFileTime on VC6 but it only talked about WinCE !
I checked again at home where I have .NET2002 after your reply and it listed NT/2000/XP too. Odd
Elaine
The tigress is here
|
|
|
|
|
Trollslayer wrote:
I'd seen GetFileTime on VC6 but it only talked about WinCE
That was me messin' with yer PC.
See this[^] link.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
|
I have the following problem :
I have written a MDI Application opening and reading files of type *.myapp
I have made a file association with my application and when a user clicks a file with the extension *.myapp my application starts but does not load the file.
I know I have to read the parameters the shell passes to my program, but I do not know how. And I do not know for which event I should write a handler.
modified 9-Mar-17 17:23pm.
|
|
|
|
|
Daniel Kanev wrote:
I have written a MDI Application opening and reading files of type *.myapp
Did you use AppWizard for this?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
In visual studio .net ver 2003 in reguards to c++ my multiplication is messed up. I get a result of 0 when I try and multiply the following. What's wrong?
#include "stdafx.h"
#using <mscorlib.dll>
#include "math.h"
using namespace System;
int _tmain()
{
__int64 p;
p= 16 * 268435456;
Console::WriteLine(p);
return 0;
}
|
|
|
|
|
I assume that the WriteLine() method supports a __int64 type. What is the largest value (e.g., 231) that you can successfully send to WriteLine() ?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
The number I am multipling with 16 is the highest number for the output.
|
|
|
|
|
If 228 is the highest number for the output, what does outputting 228 + 1 produce? If that does not work, I would expect 232 to fail as well. Yes?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
The highest number I can multiply it to is 7 after that I get the error message:
warning C4307: '*' : integral constant overflow
|
|
|
|
|
That indicates that you are running into a signed/unsigned problem. What does this yield:
p = 8U * 268435456U;
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
|
What about:
unsigned __int64 p;
p = 16U * 268435456U;
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
|
The compiler is telling you exactly what's wrong "integral constant overflow". That expression overflows the capacity of an int . You need to specify that the constants are 64-bit int s:
p = 16I64 * 268435456I64;
--Mike--
Visual C++ MVP
LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ
Strange things are afoot at the U+004B U+20DD
|
|
|
|
|
Thanks Mike. I was aware of L and U but did not know about the I64 modifier.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
That worked great. However is there a way I can use exponents with the 64-bit int's?
|
|
|
|