|
I don't know of an automated tool. I do know that the VS 2008 converter sometimes makes mistakes, the most notorious of which is failing to bring over the /O2 optimize setting in release builds.
|
|
|
|
|
Seems you can run VS 2008 with command line parameter "/convert". Hope this[^] article helps.
-Suhredayan
|
|
|
|
|
Hi,
Recently I attempted a interview. There they ask me one question,
" You have a file with employee records, with fields empno, emp name and salary. Now you have to retrieve employee information based on the employee name"
For this what I answered is, I will write a vector and based on the emp no I will search the records.
For this he again ask me what happens when that particular file is in terabytes of memory records.
Please can any one knows the approach for retrieve a emprecord from a big file based on the number....
Thanx in advance........
sampath-padamatinti
|
|
|
|
|
One solution is to build an index to the records in the file.
|
|
|
|
|
Hasnt the application which had written such file, an API too solve such tasks
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
He may have raised the terabyte issue only because you mentioned about vector. Maybe he was expecting something else - like it is may not be a good idea to search employee information based on name, since there may be duplicates.
-Suhredayan
|
|
|
|
|
I don't know where to ask this.. I have to make function in NASM that receives array and its size, then returns array.. ex. 1,2,3,4,5--> output: 5,4,3,2,1
Can anyone help me with this, because i don't know how to do it!?
Best regards
|
|
|
|
|
Aljaz111 wrote: I don't know where to ask this
The NASM Forum[^] sounds like a good place.
|
|
|
|
|
Hi All,
i have created one com component type library, after registring it it is showing entry in CLSID but ProgID has not been created(seen in regedit),and i am unable to create instance for this object.i am trying two possible ways:-
HRESULT hres1 = CLSIDFromProgID(OLESTR("ScriptObj.ScriptObj"), &clsid);
and
HRESULT hres = sobj.CreateInstance("{7B10869E-824C-4BB4-B344-73AC5AF9E1E}");
but failing in both the cases.
Thanks A Ton
Ash_VCPP
walking over water is just knowing where the stones are.....
|
|
|
|
|
Maybe you need to check HRESULT to see what is wrong.
However, have you called CoInitialize or CoInitializeEx first?
And finally, you can write:
HRESULT hres = sobj.CreateInstance(OLESTR("ScriptObj.ScriptObj"));
|
|
|
|
|
|
do you have researched desktop messages, can you share your fruit to me?
for ins, if i refresh destop, what message does the desktop gain?
thank you very much
|
|
|
|
|
It is not clear what you want to do but i will assume you want to force the desktop to be redrawn, try this:
::InvalidateRect(NULL, NULL, TRUE);
and see if it produces what you wish or not.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
thank you all the same, but i want the message whick desktop gains when i refresh desktop, i use spy++, but too message to distinguish
|
|
|
|
|
What exactly do you mean by "refresh"?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
"refresh" just is a action for repainting the desktop, you can do the action by pressing right mouse button on the desktop and clicking the refurbish item on the pop-up menu
|
|
|
|
|
So, i used spy++ too, turning off the logging of lstview messages and here is what i found:
after you select the "Refresh" item from the popup menu, the desktop(which seems to be a "SysListView32", or have one on it) seems to receive a (WM_USER+3152) message, with wParam set to zero and lParam set to 0xFF000000, after this, it seems to start refreshing itself, turns off its own redrawing (WM_SETREDRAW), removes all the items in it, meaning the icons (LVM_DELETEALLITEMS), inserts them again (LVM_INSERTITEM), then turns back on redrawing and redraws itself (WM_ERASEBACKGROUND, WM_PAINT). I have no idea what you want to do and why you need this, or if i actually posted what you require. This is on Windows XP Pro SP3. So does this help anything?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
i'm so glad for your patient answer though i don't need it any more
|
|
|
|
|
Hi,
Is it possible to export a string to CSV when the string contains a comma, and then without losing the format of the string?
I dont want to replace the comma with a different character because I am exporting the string so it can be auditted by a different person.
If so, could you point me to where it explains to do it.
Thanks
Tony
|
|
|
|
|
Outwardly (I've not tested) yes, just surround with double quotes the fields containing commas: [^].
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]
|
|
|
|
|
Spot on, thanks a lot for that
|
|
|
|
|
I want to get the string selected in a list control(not in list box) and save it in another variable. Smebody plz help.
Thanks in advance.
|
|
|
|
|
Use ListView_GetSelectionMark [^] to retrieve the selected item index and then use such index in ListView_GetItemText [^] call.
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]
|
|
|
|
|
I have created a win32 application, in which a window is created say mywindow1 and after that I am creating other window in the same application say mywindow2. Based upon some condition Mywindow2 is created, if the condition is not satisfied mywindow2 will not be created that is fine (no problem with this scenario). But when Mywindow2 is created it is not a child of mywindow1. While creating the mywindow2 I am using findwindow(null, “mywindow1”) method to get the handle and then using hidewindow(mywindow1hndl) mywindow1 is hided.
Now my question is, finding a window handle using window name and hiding the window is a good idea or not in the real time application. Will this create a problem in the future? If not what is the best way to do it?
Thanks,
Nandu
|
|
|
|
|
How are you creating your window? Do you use the WS_CHILD value while creating it?
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|