|
Good Luck!
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
hi,
I am trying to run an exe in mfc,which needs a command prompt with some conditions to be given(it will not work normally). this is useful for converting dicom image to bitmap image..so can any one suggest the method.
|
|
|
|
|
|
Hi all.
i have error as:
i using invalidate() and UpdateWindow() to repaint windown.
but when i lock PC (window key + L) and after that i log on in to PC.
invalidate() and UpdateWindow() called but ondraw(CDC *pdc) funtion not run.
please help me about this error.
|
|
|
|
|
|
Well, I suppose you have to write some code...
What is your doubt about?
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]
|
|
|
|
|
|
Well you haven't to hard-code the resize routine of every control. Code maybe smart (you know iterations,...).
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]
|
|
|
|
|
This CodeProject article[^] about automatically resizing controls in a dialog when the dialog is resized might be of use to you....
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
What's with this habit of deleting your messages ? Please stop doing that: other people might find useful information in your problem...
|
|
|
|
|
Hi all,
Are there any source code or algorithm about drawing spider chart or star chart in MFC dialog (VC6)?
thanks
あんかた
|
|
|
|
|
Hii
In my program I'm reading the clusters in the volume using the appropriate physical offsets to the disk.
drive_handle=Createfile(L"\\\\.\\PhysicalDrive0",......);
for( i=0;total_noof_clusters;i++)
{
phys_offset_source= conversion(i);
phys_offset_dest= conversion(i);
DWORD dwPtr1=SetFilePointer(drive_handle,phys_offset_source,NULL,0);
if (dwPtr1 == INVALID_SET_FILE_POINTER)
{
printf("\nSetFilePointer Failed to read from source,:%d\n",GetLastError());
return 0;
}
if(!ReadFile(drive_handle,
bBuffer1,
cluster_size,
&dwRetBytes1,
0))
{
printf("\nUnable to Read the Disk Error: %d\n",GetLastError());
return o;
}
DWORD dwPtr2=SetFilePointer(drive_handle,phys_offset_dest,NULL,0);
if (dwPtr2 == INVALID_SET_FILE_POINTER)
{
printf("\nSetFilePointer Failed to write position%d\n",GetLastError());
return 0;
}
if(!WriteFile(drive_handle,
bBuffer1,
cluster_size,
&dwRetBytes1,
0))
{
printf("\nUnable to write he Drive Error: %d\n",GetLastError());
return o;
}
}
The above code not giving no (compilation and link)error messages,
But does not give the result.
How do we know the program reading correctly?
It returns the correct no of bytes read after one read operation .
When I wrote theses data into destination , nothing wrote.
What may be the problem??
Where is the mistake in the code ?
Any idea?
-----------
Thanking you
Krish
krishnampkkm is online now Report Post Edit/Delete Message
|
|
|
|
|
krish_kumar wrote: In my program I'm reading the clusters in the volume using the appropriate physical offsets to the disk.
I could not understand how could achieve this using SetFilePointer , that uses an offset relative to the start of the file.
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]
|
|
|
|
|
Hiiii
As per MSDN the condition is "file handle must be created with the GENERIC_READ or GENERIC_WRITE". Here I opened a Hard disk handle using NTFs in windows xp.
------------
thanking you
------------
|
|
|
|
|
Well, such a sentence, without context, does not provide any evidence of. Could you please post the link?
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]
|
|
|
|
|
Are you using Vista? If so, are you meeting the conditions specified by this page[^]?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
And it always shows .....
the error
Error 131 - Error Code 0x83
Windows Error Message 131: 'ERROR_NEGATIVE_SEEK'
An attempt was made to move the file pointer before the beginning of the file.
I am changing the setfilepointer() code ...but result is same...same error displaying
How to solve this...?
------------
thanking you
------------
|
|
|
|
|
You do realise that by only using the low-order DWORD in SetFilePointer, you're limited to the first 2GB of the disk, I presume? What offset are you feeding to SetFilePointer?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
I have tried offset as LARGE_INTEGER alsooo.....but same error...
|
|
|
|
|
Passing the low and high words separately as specified by the documentation? You can't just pass a LARGE_INTEGER or LARGE_INTEGER pointer.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
DWORD dwPtr1=SetFilePointer(hDevice1,
li_offset2.LowPart,
&li_offset2.HighPart,
FILE_BEGIN);
if (dwPtr1 == INVALID_SET_FILE_POINTER)
{
printf("\n\nSetFilePointer Failed to write,Err No:%d\n",GetLastError());
return 0;
}
|
|
|
|
|
Have you actually checked what the value is that you're passing to it? It's entirely possible that SetFilePointer isn't lying and that you are passing a negative number to it?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Thank uu..
thank uu
thank uu
I was passing -ve value.........
Mr.Stuart Dootson
U are really great......
--------------
Thanking you
--------------
|
|
|
|
|
Hai
I've been under a great prob.. since 2 days...
Issue is :
I've built a C#dll which is accessed from VC++(win32 console dll app)..
I've created a Java program to access the dll of the said C++ program...
I was successful in getting it worked ...
Problem comes when I run the same application in a different system where all the
needed visual studio files are installed...
From java i can access the C++ dll but the error comes in accessing C# dll(through the C++ program)...
NB: error accurs only when it is run on a different machine...
Error is:
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# Internal Error (0xe06d7363), pid=4024, tid=4028
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_09-b01 mixed mode, sharing)
# Problematic frame:
# C [kernel32.dll+0x1eb33]
#
# An error report file with more information is saved as hs_err_pid4024.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
i've done "googling" with this error... but no one has come up with some satisfactory answer...
Pls do help.....
Thanks in advance ...
Santo
|
|
|
|
|
what is in the hs_err_pid4024.log.
Maybe on the machine isnt the approbiate (and bloated ) .net-Framework installed.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|