|
I'll suggest you get busy with the debugger
If the target machine hasn't got Visual Studfio, then use WinDbg[^]. Debug java.exe, specifying the entrypoint class on the command-line as you would normally and run the Java app. When the exception occurs (looks like it's in kernel32 during a call to the C run-time) the debugger should give you better information about where it's happened.
The debugger will warn you that Java.exe has no debug information, but that doesn't matter.
This approach does work for debugging native+Java hybrids - I used it myself last week to debug my very first app using JNI
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
you are running the debug build. This isnt fine for a target machine.
test_latestDllCpp.dll is your c++ dll. Where is the c# dll???
google yourself: "siginfo: ExceptionCode=0xe06d7363, ExceptionInformation=0x19930520 0x0007fa2c 0x10011a4c " from your log. Some curios errors. I have no clue other than "unexpected errors"
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Hi Karstenk
Thanks for ur reply ... even if i changed it to release mode it s d same..
ALso i had put together all the dlls and then have compiled..
no difference...
Santo
|
|
|
|
|
is the proper .net Framework installed?
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
KarstenK
yes... they are proper...dotnetframework3.5
Thanks once again...
Santo
|
|
|
|
|
Hi everybody.
current, I using source vc++ to created bmp image for Datamatrix.
it fixed 1 pixel. I need draw bmp image larger but don't know repair in source code.
help me. thanks very much
nothing
|
|
|
|
|
How could you get any help without posting the relevant code?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Is there any way where by providing a VALUE NAME and KEY NAME it will search all the values by iterating sub-keys?
The secret of life is not enjoyment
but education through experience.
- Swami Vivekananda.
|
|
|
|
|
|
I have been searching the web for the past couple of days trying to find figure out how to create a video feed from my program that will appear as a web cam in other applications.
Thanks in advanced.
|
|
|
|
|
My best guess would be that you should write a driver for your "emulated webcam", maybe try looking into DirectShow[^].
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
MSDN says:
//-----------------------------------
SystemTimeToTzSpecificLocalTime
The SystemTimeToTzSpecificLocalTime function converts a Coordinated Universal Time (UTC) to a specified time zone's corresponding local time.
//-----------------------------------
Now I need an inverse function of above, which can convert local time to UTC time.
Is there a function to do that?
modified on Tuesday, June 23, 2009 3:52 AM
|
|
|
|
|
|
many our clients are still using win2k, so I have to make it work on Win2k.
|
|
|
|
|
Well - all TzSpecificLocalTimeToSystemTime is going to do is offset the time by the time offset implied by the timezone you pass into it. So, you just need to do the same.
If you would be passing a null time-zone into that function, then you can do what it does and retrieve the current time zone information using GetTimeZoneInformation[^]. That gives you the current time-zone information, including the biases to be applied to UTC to get local time (or vice versa!). So, all you have to do is work out how to add the suitable number of minutes to your local timke - I'd probably convert the SYSTEMTIME to a FILETIME, do the time biassing and then convert the FILETIME back to a SYSTEMTIME.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
TzSpecificLocalTimeToSystemTime function requires XP, not for Win2k.
I have created 2 functions and solved the problem, the 2 are:
void GreenwichTimeToLocalTime(const SYSTEMTIME&tmSys,SYSTEMTIME&tmLocal)
{
SYSTEMTIME tmS,tmL;
::GetSystemTime(&tmS);
::GetLocalTime(&tmL);
FILETIME ftS,ftL;
::SystemTimeToFileTime(&tmS,&ftS);
::SystemTimeToFileTime(&tmL,&ftL);
ULARGE_INTEGER ulS,ulL;
ulS.HighPart=ftS.dwHighDateTime;
ulS.LowPart =ftS.dwLowDateTime;
ulL.HighPart=ftL.dwHighDateTime;
ulL.LowPart =ftL.dwLowDateTime;
__int64 i64=ulL.QuadPart-ulS.QuadPart;
FILETIME ftSys;
::SystemTimeToFileTime(&tmSys,&ftSys);
ULARGE_INTEGER ulSys;
ulSys.HighPart =ftSys.dwHighDateTime;
ulSys.LowPart =ftSys.dwLowDateTime;
ulSys.QuadPart+=i64;
FILETIME ftLocal;
ftLocal.dwHighDateTime =ulSys.HighPart;
ftLocal.dwLowDateTime =ulSys.LowPart;
::FileTimeToSystemTime(&ftLocal,&tmLocal);
}
void LocalTimeToGreenwichTime(const SYSTEMTIME&tmLocal,SYSTEMTIME&tmUTC)
{
SYSTEMTIME tmS,tmL;
::GetSystemTime(&tmS);
::GetLocalTime(&tmL);
FILETIME ftS,ftL;
::SystemTimeToFileTime(&tmS,&ftS);
::SystemTimeToFileTime(&tmL,&ftL);
ULARGE_INTEGER ulS,ulL;
ulS.HighPart=ftS.dwHighDateTime;
ulS.LowPart =ftS.dwLowDateTime;
ulL.HighPart=ftL.dwHighDateTime;
ulL.LowPart =ftL.dwLowDateTime;
__int64 i64=ulL.QuadPart-ulS.QuadPart;
FILETIME ftLocal;
::SystemTimeToFileTime(&tmLocal,&ftLocal);
ULARGE_INTEGER ulLocal;
ulLocal.HighPart=ftLocal.dwHighDateTime;
ulLocal.LowPart =ftLocal.dwLowDateTime;
ulLocal.QuadPart-=i64;
FILETIME ftUTC;
ftUTC.dwHighDateTime=ulLocal.HighPart;
ftUTC.dwLowDateTime =ulLocal.LowPart;
::FileTimeToSystemTime(&ftUTC,&tmUTC);
}
|
|
|
|
|
You didn't really read my answer, did you. I told you that you could get the required time zone offset by using GetTimeZoneInformation (which is available on Windows 2000) and then emulate TzSpecificLocalTimeToSystemTime.
Never mind.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
You could just copy the wine implimentation:
http://source.winehq.org/source/dlls/kernel32/time.c[^]
...cmk
The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying.
- John Carmack
|
|
|
|
|
Hi all,
I am using VS 2008 for the first time.I was working with VC++6.0.
And i am trying to compile the project which was done with VC++6.0.
When i am building the project i am getting the error like this
CVTRES : fatal error CVT1100: duplicate resource. type:MANIFEST, name:1, language:0x0409
LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
I have googled out and found that if Generate manifest option in Project+properties+Linker is set to off this linker error will not come.
But i am not able to run the exe which is generated.
Please help me.
Regards
Deepu.
|
|
|
|
|
you need a manifest in VS2008 by design!!!
Throw out the manifest of the rc File. You can include it in the manifest tool -> additional manifest.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
|
Have you done a Rebuild All with VS2008?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
No.I am searching for how to remove the manifest information from rc file.
|
|
|
|
|
You can turn off the manifest generation step in the linker tool so long as you always distribute the application with the manifest contained in a separate file in the same directory as the executable.
As this page[^] says, Application manifests are copied into the same folder as the application executable file or included as a resource in the application's executable file..
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi Stuart
Thanks for helping me.I didnt understand much about manifest files.
But when i deleted Manifest option in rc file it worked.
Regards
Deepu.
|
|
|
|