|
</b>hi,
some compiling error is hapanning in your program
How to solve it??
Compiling...
DirectInputTest.cpp
E:\download display device\24.09.08\Hooking_DirectX_COM_src\COMTest\DirectInputTest.cpp(68) : error C2146: syntax error : missing ';' before identifier 'lpdi'
E:\download display device\24.09.08\Hooking_DirectX_COM_src\COMTest\DirectInputTest.cpp(68) : error C2501: 'LPDIRECTINPUT8' : missing storage-class or type specifiers
E:\download display device\24.09.08\Hooking_DirectX_COM_src\COMTest\DirectInputTest.cpp(68) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
COMTest.exe - 3 error(s), 0 warning(s)
tisosbrat@gmail.com
|
|
|
|
|
tisos wrote: E:\download display device\24.09.08\Hooking_DirectX_COM_src\COMTest\DirectInputTest.cpp(68) : error C2146: syntax error : missing ';' before identifier 'lpdi'
So have you even looked at line 68 of DirectInputTest.cpp ?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Hi Forum
I have a dialog application and i want to add this application in StartUp in vista.Can any one give me tips how can i do this?
Plz helpe me
Thanks in Advance
|
|
|
|
|
This article may be of use.
Regards,
--Perspx
"I've got my kids brainwashed: You don't use Google, and you don't use an iPod." - Steve Ballmer
"Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen an angry penguin charging at them in excess of 100mph." - Linus Torvalds
|
|
|
|
|
i want to show print preview on same dialog in any control
i want to show print preview when user chose patient name form combo then from data base his patient detail will retrive and i want to show that information on report( for print out) but before to send print i want as well as user select patient name print preview should display on same dialog in any control( edit box, or label etc etc )
how can i do this?
|
|
|
|
|
HI,
I want to delete individual items in the combobox.
using below code iam deleting each item, but Last item still displaying in my Combobox.
int index = m_CtrlCmb.GetCurSel();
m_CtrlCmb.DeleteString(index);
help me to resolve this.
Thanks in advance.
Preethi
|
|
|
|
|
Debug and trace through to see what index is on the Last Item. GetCurSel() will return LB_ERR (usually -1) if nothing is selected.
- S
50 cups of coffee and you know it's on!
A post a day, keeps the white coats away!
|
|
|
|
|
HI
My problem is my combobox contains nitems. Iam deleting each item using below code, Comobo List also getting updated according to that,means that item is getting deleted. Last item also iam able delete from Combobox List using below code.
int index = m_CtrlCmb.GetCurSel();
m_CtrlCmb.DeleteString(index);
But my problem is Last item in the combobox getting deleted from Combo List but displaying in the combobox,means that item i need to delete manually.
I couldnt trace By Debugging, Plz Help.
|
|
|
|
|
Are you trying to delete all items in the combobox? Are you using MFC?
If so, call:
m_CtrlCmb.ResetContent();
- S
50 cups of coffee and you know it's on!
A post a day, keeps the white coats away!
|
|
|
|
|
HI Steve,
Thanks for your help
Iam able to fix this issue
using this code
int Count1 = m_CtrlCmb.GetCount();
if(Count1 == 0)
{
m_CtrlCmb.ResetContent();
}
Thanks,
Preeti
|
|
|
|
|
Preethi_123 wrote: int Count1 = m_CtrlCmb.GetCount();
if(Count1 == 0)
{
m_CtrlCmb.ResetContent();
}
How does it work??
I mean you are deleting when count is 0? does n't it mean that there are no contents?? Or is it a typo??
Regards,
Sandip.
|
|
|
|
|
Or m_CtrlCmb.SetCurSel(-1);
Lookup documentation on CComboBox on MSDN.
- S
50 cups of coffee and you know it's on!
A post a day, keeps the white coats away!
|
|
|
|
|
Why would you want to delete an empty combobox?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Does ResetContent delete all the pointers added with SetItemData?
|
|
|
|
|
The ItemData is just a DWORD associated with each item. The combo box doesn't use it in anyway, so it's up to you to clean up any memory you allocate.
You could loop through all your items and delete the pointers, then call ResetContent.
- S
50 cups of coffee and you know it's on!
A post a day, keeps the white coats away!
|
|
|
|
|
|
Hi all,
I'm trying convert "D:\Documents\delay.txt" to "D:\\Documents\\delay.txt". Anybody can help me?
Thank so much!
|
|
|
|
|
Why? Escaping is handled at compile time, not runtime.
But, depending on your platform, most of the string classes have a replace function.
MFC:
CString string1("D:\\Documents\\delay.txt");
string1.Replace("\\", "\\\\");
- S
50 cups of coffee and you know it's on!
A post a day, keeps the white coats away!
|
|
|
|
|
char *strFilePath = new char[1024];
strFilePath = "D:\Documents\delay.txt";
So, how to replay('\','\\'). I'm used C language.
|
|
|
|
|
Try:
strcpy(strFilePath, "D:\\Documents\\delay.txt");
You need the double backslashes \\ in your string literal, because \ is the escape character, so the compiler is translating what you wrote as \D and \d. Lookup "C escape sequences" on google.
- S
50 cups of coffee and you know it's on!
A post a day, keeps the white coats away!
|
|
|
|
|
Hi you can use strchr method in recursive order which will give u the "\" location. you have to just replace it as "\\"
I think this is what looking for.
The secret of life is not enjoyment
but education through experience.
- Swami Vivekananda.
|
|
|
|
|
the good question is "why do you need to do this ?"...
I suspect a dark reason which is in fact because you're trying to hack something because you don't actually understand that string escaping is useful only in your source code...
if you're getting the string from an external source (input, textbox, open file dialog), the string you get is already good.
you need to escape \ into \\ only in your source code, because if you don't, the \ character will try to escape the character next to it, and that's not what you want. you want a single \ in the string, because it is the folder separator character, which must be typed '\\'...
|
|
|
|
|
Hi all,
i got question here need some information. i'm new in in programming.
could anyone help.
#include <stdio.h> <br />
int main()<br />
{<br />
int a,b,c:<br />
a=5;<br />
b=7;<br />
c=a+b;<br />
printf("%d+%d=%d\n",c,a,b);<br />
return 0;<br />
}</stdio.h>
Can, anyone help me go through with this. Thanks. in my mind, the answer display on the screen should be "12+5=17". i'm not sure is that correct. if not correct, can you please explain. Thanks all.
|
|
|
|
|
int a, b, c; <-- not ":", but ";"
the result is : 12+5=7
|
|
|
|
|
How about this? Do i do it correctly,
unsigned int a,b,c;
void main()
{
a=10;
b=7;
c=a>>5;
b=c|a;
a=~c&~b;
c=b*a^5;
}
end
I know >> is greater than. * is square and ^ xor.
The command like "|" and "~" i really not familiar with. Can anyone explain or go through with it. What it will be the final value for a, b and c? I really confused
|
|
|
|