|
Hi,
I install a hook using the dll, now I want to show a dialog in the dll, but always encounter error.
Am I missing something?
Thanks & Regards
|
|
|
|
|
Hi,
Could you post a bit of your code responsible for creation and displaying of that dialog box?
Regards
|
|
|
|
|
It's very simple, I insert a dialog resource in the dll project, then hook some application using the dll, then send some message to the application, when receive the message, I will show the dialog using the following code:
SomeDlg dialog;
dialog->DoModal();
Then the application will be crashed.
|
|
|
|
|
Hi,
I need help to identify pnp usb drivers automatically by windows without poping up New hardware found dialog box.
I am able to do it on xp and win2k by putting drivers into one folder and giving that path into "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion"
there one "DevicePath" key is there,where I have given my dirver folder path.
Here funda is that whenever you plugged in usb device it will search the
drivers into "DevicePath" Key value folder and if windows could not find the
appropriate drivers then It will pop's up the New Hardware Found Box.
On Vista,I tried same thing but it's popping up the new hardware found dialog.
I don't know how to do this on vista I have read the help from msdn help
for this.It seems on vista have some different way to do.
I have read link http://msdn2.microsoft.com/en-US/library/aa477011.aspx
Please let me know if any body have some idea about this.
Thanks
Sonani
sonani prakash
|
|
|
|
|
I've got an MFC dialog box with a combo box and several text boxes. I have to know what item in the combo box is selected in order to display the right content in the text boxes. Right now I have it set up so that when the user clicks a button it executes this segment:
CurrentSelection = ComboBoxPtr->GetCurSel();
CurrentContact = m_pMainWnd->OperationsClass.PhoneBookClass.ReturnContact(CurrentSelection);
//update text boxes based on name combo box selection
UpdateContactTextBoxes(CurrentSelection);
How can is I set it up so that it will detect when the user makes a change in the combo box, gets the current selection, and automatically executes UpdateContactTextBoxes(CurrentSelection), all without using a button? I saw a tutorial on how to do it with a wizard, but can anyone tell me how to do it with straight MFC code? I hate wizards.
|
|
|
|
|
Use events associated with the combo box.
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
Just add a handler to CBN_SELCHANGE message and put your code there..
|
|
|
|
|
CoffeeAddict19 wrote: How can is I set it up so that it will detect when the user makes a change in the combo box,
Use CBN_SELENDOK .
|
|
|
|
|
Thanks for your help. I got it working now.
|
|
|
|
|
How do I create NCB file with Visual Studio 6 so I can have intellisense enabled? Thanks
Norman Fung
|
|
|
|
|
It will be created automatically when opening project
|
|
|
|
|
What if it isn't? I rebuild the project many times and it is not there. NCB files must be a compiler option somewhere...
Norman Fung
|
|
|
|
|
The intellisense database is rebuilt when you open the solution/project, not when you rebuild it.
I'm not sure where the options are in VC6 but look in help for Intellisense. In VS2003 the settings are in the Tools|Options dialog in the Text Editor section.
Mark
|
|
|
|
|
Hi,
I have two list boxes ( ListBox1 and ListBox2 ) and an EditBox ( Edit1 ) box.
1. Select an item in ListBox1.
2. Enter a string in EditBox and Press Enter Key.
3. The String will go to ListBox2.
4. Like that add any number of items by selecting an item in ListBox1.
Problem : When we select an item in ListBox1, ListBox2 should display all the items we entered under ListBox1 dynamically. How I can achieve this ?
It's kind of fun to do the impossible.
|
|
|
|
|
Create in memory a data structure to store all items in Listbox2 associated with each item in Listbox1. A dictionary or hashing table will be appropriate. When adding an item to listbox2, again adding it to that data structure. When selected item in listbox1 changed, reload all items associated with listbox1 selected item to listbox2.
Hope that helps
|
|
|
|
|
Think about using a collection class for storing the data(CMap will be better choice)..
Put the item in list1 as "Key" and the items corresponding to it in List2 as "value"(use CStringArray here).
|
|
|
|
|
I would like to know how to disable the joystick by programming?
Please help!
|
|
|
|
|
I have a appication to load menu from resource, and want to change the menu style dynamically from "POPUP" to "STRING".
I wrote the following code:
pSubMenu->ModifyMenu(6,MF_BYPOSITION|MF_POPUP,(UINT)m_Menu.m_hMenu,"xxxM(&I)\tI");
m_Menu is a pop menu.
And now i want to change the menu style to "STRING":
pSubMenu->ModifyMenu(6,MF_BYPOSITION|MF_STRING,(UINT)IDM_RECV,"xxxM(&I)\tI");
The menu caption and icon was changed, but the menu was still "POPUP" style.
Who can tell me how to solve this problem?
Help!!!
-- modified at 22:52 Thursday 23rd November, 2006
hi
|
|
|
|
|
Hello, where can I found an example to communicate with a database in windows mobile (in native c++ and simple sql strings)
I found on the net that I must use OLEDB with SQL Server Mobile
In java it's very simple to do that
thx
|
|
|
|
|
What kind of database do you have or need?
Do you plan to have the data locally? I have worked on a mobile application where we just took a snapshot of data as XML locally. We could then just use some standard XML access code for navigating the data.
|
|
|
|
|
hi, I need a real database with sql support for insert records and also query the database
|
|
|
|
|
I assume Java worked because you had a library you could use. So maybe you could take the same approach with implementing this in C++, look for a library.
Gooling I found: http://www.sqlapi.com/[^]
If your mobile database does not need to connect to another database then you could choose any database supported by the library you choose to use. You might want to look around more to find one with a small foot print.
|
|
|
|
|
|
What is length (i.e. how is declared)?
|
|
|
|
|
I think the problem is the line before the one you've highlighted
try changing
open.read((char*) length, sizeof(short));
to
open.read((char*)(&length), sizeof(short));
System.IO.Path.IsPathRooted() does not behave as I would expect
|
|
|
|