|
regarding the index type (int ), you might have about 2 147 483 647 (232 / 2 - 1) or more items on a list...
TOXCCT >>> GEII power [toxcct][VisualCalc 2.24][3.0 soon...]
|
|
|
|
|
Are you all from Itally
VuNic
|
|
|
|
|
|
i'm not from ITALY, are you from ITALY..? get me now?;)
VuNic
|
|
|
|
|
erf, i've just understood the trick with italy/italic...
lol
well, i let you guess where i'm from sure you can find
TOXCCT >>> GEII power [toxcct][VisualCalc 2.24][3.0 soon...]
|
|
|
|
|
looking at your bright orange color, i'm sure you are from Holland. ;P
VuNic
|
|
|
|
|
|
Hi,
I'm implementing a binary protocol and I need to serialize a C++ double type value. I know that the VS compiler implements doubles with IEEE 754 format, but I need to ensure the portability of my code throught different compilers (and the floating point format is implementation defined). The question is if do you know any library or some function to convert a double into a stream of bytes encoded with the IEEE format. Another question is, will I have any endianess problems with IEEE floating point formats, or different endianess machines order floating point numbers the same?
Thanks,
Federico
|
|
|
|
|
I had a similar problem once. It looks like there was this big/little-endian problem for data representation. At least I did not crack it, I just found a simpler solution which was good enough. What I did was : convert a double value into a string, send it as a text string and convert it back on the remote computer. String-numeric conversion functions are common.
I hope it helps.
Nick
|
|
|
|
|
Hi all
As when system is switched on, and we press del key then instead of operating system load we enter into setup.
I also need to do same, that means, when system is started to on and if press any key (any one of the key), then Operating system loading should be halted. and my application should run.
Please guide me,
Thanks
|
|
|
|
|
rajeevktripathi wrote: As when system is switched on, and we press del key then instead of operating system load we enter into setup.
This is happening at the BIOS level. Before Windows is loaded into memory, the POST code is executed.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
well, methink, you cannot do this easilly; when pressing "del" it will go to the computer's bios, it's not an ordinary program.
what exactly do you want to do that you don't want the Operating System loaded ?
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
What exactly do you want to do that you don't want the Operating System<br />
loaded?
A rethorical question indeed! Sure thing: to rip off Windows password from a colleague's PC
|
|
|
|
|
Really? But that implies Windows is loading, and you can replace the GINA to do that. I think he wanted to intercept even the loading of Windows.
He could rewrite the boot loader on the disk with something else, and then choose between Windows and another OS possibly.
People that start writing code immediately are programmers (or hackers), people that ask questions first are Software Engineers - Graham Shanks
|
|
|
|
|
Messages from List view controls are sent in the form of WM_NOTIFY, no problem catch the message perform the action. Until the messages that MSDN are talking about are not being sent.
case WM_NOTIFY:
switch(LOWORD(wParam))
{
case IDC_LIST:
if(((LPNMHDR)lParam)->code == NM_CLICK) {
}
if((((LPNMHDR)lParam)->code == NM_DBLCLK)||
(((LPNMLVKEYDOWN)lParam)->wVKey == VK_SPACE)||
(((LPNMLVKEYDOWN)lParam)->wVKey == VK_RETURN)||
(((LPNMHDR)lParam)->code == NM_RETURN)||
(((LPNMLVKEYDOWN)lParam)->wVKey == VK_RIGHT)) {
}
else if(((LPNMLVKEYDOWN)lParam)->wVKey == VK_LEFT) {
}
break;
}
break;
When the Enter key is pressed, nothing happens, yet the directions and space bars do. I'm pretty sure there is nothing wrong with the above code. Also another little annoyance is there is no KEYUP, I want to perform an action when a new item is selected using the direction keys. As it stands I would have to pass the selected item to the function, instead of letting the function handle it.
|
|
|
|
|
i tried out ur code. Its working pretty out here.
But when i added a default button on to the control, it stops getting the VK_RETURN message . Please check it out whether this is because of any buttons on the dialog.
nave
|
|
|
|
|
Yes I have two buttons on the dialog. I read somewhere that having an ID_OK can cause problems, so I changes the id to ID_BUTTON_OK and set it to 1023. I have also read that the message mapping needs to be changed, but I'm not quite sure how to accomplish this. Here is my Winmain
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
INITCOMMONCONTROLSEX InitCtrlEx;
InitCtrlEx.dwSize = sizeof(INITCOMMONCONTROLSEX);
InitCtrlEx.dwICC = ICC_BAR_CLASSES;
InitCommonControlsEx(&InitCtrlEx);
g_hinst = hInstance;
return DialogBox(hInstance, MAKEINTRESOURCE(IDD_MAIN), NULL, DlgProc);
}
I'm used to creating controls at runtime, this is my first time to use a resource dialog.
|
|
|
|
|
As a temporary solution I added some extra code into the dialogs defualt button process. But I would be interested in how to solve this. I have read many questions about the same thing all over the web, either there are no answers or they are MFC related.
|
|
|
|
|
HI
I want to take the image of disk or drives and wanna image to be an arc file.
So please tell me that how can I compress the disk or drive image to arc file.
Please guide me.
Thanks
|
|
|
|
|
I am trying to check whether a machine has valid internet connection or not, in MFC code. Can you please tell how to do that?
Thanks in advance,
|
|
|
|
|
InternetGetConnectedState(...)
Nibu thomas
Software Developer
|
|
|
|
|
See here.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Hi,
Can anyone tell me how to launch my application when a file of particular type is clicked. For example, whenever I click a PDF file it automatically opens in Adobe right, something similar to that.
Awating you peoples earliest response.
Thanks In Advance
Cheers
|
|
|
|
|
So what you want is register a file extension.
To do that, you need to update some registry keys :
Under HKEY_CLASSES_ROOT\ create a key with your extension, say .myapp, and assign it the value MyApp.
Then under HKEY_CLASSES_ROOT\ again, create a MyApp key, and create following structure HKEY_CLASSES_ROOT\MyApp\shell\open\command , and assign the path of your application to the command key.
Check ::RegOpenKey and associated functions for handling registry keys.
What you want to achieve is usually done by an install programm, since you need the path where the user will install your app. This is very easy to do using InnoSetup (Google for it).
Hope this helps
~RaGE();
|
|
|
|
|
Use ShellExecute() with the "open" verb.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|