|
but i m using MFC not win32 .....
|
|
|
|
|
|
I have a combo box with 3 data:4,8,16. I'm reading a dummy file ONINIT and I would like to get the value "let's say 16" from the file displays in the combo box. How do I do that?
|
|
|
|
|
Are you wanting to populate the combobox with the contents of a file?
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
I do not want to populate it since it is already populate. I want the combo box to display or default to whatever value from the file.
|
|
|
|
|
Use SelectString() .
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
|
I want to create DataGrid dynamicaly, can anyone give me a link to complete program that do this with SDI.
pDataGrid->Create(...); ???
Thanks in advance,
bilas
mailto::keeper_@km.ru
|
|
|
|
|
hi,
i have created an array
UCHAR * m_array;
m_array = new UNCHAR [size]
i saved data in it ,, that PCM data (pulse code modulation)
now i want to send this (array) throught socket.
but i want to place some TAG before this that helps me on server side that i m recivng an array
CString str = " <>";
E.G ..
? = str + m_array( i.e object of array )
in which(?) i store it.
m_array is not a string data;
KEEP in mind m_array is a sound data
how can i addup this type of tag that helps me on server side to distiguish this that it is an array object ,, not ohter data...
if its successfull to add up a tag
then using
CSocket->send ( ...... , .. , ...);
it can be send
Plz reply me about adding a tag
thanx
|
|
|
|
|
please stop posting your messages twice. thx
Don't try it, just do it!
|
|
|
|
|
hi,
i have created an array
UCHAR * m_array;
m_array = new UNCHAR [size]
i saved data in it ,, that PCM data (pulse code modulation)
now i want to send this (array) throught socket.
but i want to place some TAG before this that helps me on server side that i m recivng an array
CString str = " <<array>>";
E.G ..
? = str + m_array( i.e object of array )
in which(?) i store it.
m_array is not a string data;
how can i addup this type of tag that helps me on server side to distiguish this that it is an array object ,, not ohter data...
if its successfull to add up a tag
then using
CSocket->send ( ...... , .. , ...);
it can be send
Plz reply me about adding a tag
thanx
|
|
|
|
|
There are several solutions. You could design a custom protocol that only the server and its clients understand.
For example, the first send sequence could include with a packet that describes the data.
Content: ...
Length: ...
...
Kuphryn
|
|
|
|
|
I have Visual C++ 6 and would like to know how to change the external dependencies for a specific file.
Can it be done?
If so, How?
I am the handsome one in the crowd.
|
|
|
|
|
What I am trying to do is simulate a key press with MFC. I wan't the application to press a key, just as the user would with the keyboard. Even better would be if I could have the program send keys to a specific application weather it is the active window or not, I don't know if that is possible or not though. Any help is greatly appreciated
-Dev578
|
|
|
|
|
// send the right arrow key
SendMessage(WM_KEYDOWN, VK_RIGHT, 0);
// send the letter 'A'
SendMessage(WM_CHAR, 'A', 0);
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
Thank You
|
|
|
|
|
Recently I've been playing with hooks and am trying to record and playback a window position for a testing framework I'm working on. Unfortunately when my CBT callback is called and it enters HCBT_CREATEWND it always fails to write to ::WriteFile(). My source looks like...
LRESULT CALLBACK CBTRecord(int nCode, WPARAM wParam, LPARAM lParam)
{
LPHCBT_CREATEWND createWnd = (LPHCBT_CREATEWND)lParam;
unsigned long bytes = 0;
if(nCode < 0)
return CallNextHookEx(nCode, wParam, lParam);
switch(nCode)
{
case HCBT_CREATEWND:
::WriteFile(cbtFileHandle,createWnd,sizeof(createWnd),&bytes,NULL);
break;
}
return CallNextHookEx(nCode,wParam,lParam);
}
I set the hook globally using 0 for the threadId and the cbtFileHandle is in a shared data segment of the dll. I've found that the HCBT_CREATEWND and HCBT_DESTROY both don't write output during their calls. I thought it might be a process locking mechanism but I was able to use ofstream to write out data during the HCBT_CREATEWND call. ofstream has performed poorly in dll calls for me though and I'd like to get to the bottom of why a Win32 call would fail in a CBT hook function.
|
|
|
|
|
case HCBT_CREATEWND:
if (! WriteFile(...))
DWORD dwResult = GetLastError();
break;
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
The error I retrieve from GetLastError tells me that I have an ERROR_INVALID_HANDLE. This doesn't make a whole lot of sense to me because my file handle is in the data_segment part of my dll so it should be shared. I can successfully write from my MouseProc callback function as well. The only time it fails to write is when I want it to record a process being created. Further complications come up when I can successfully call
::MessageBox(NULL,createWnd->lpcs->lpszName,"Name",0); successfully, but
::OutputDebugString(createWnd->lpcs->lpszName); fails to write to the debug window. I just don't know how to get at that data in the CBT_CREATEWND struct when the process is being created.
|
|
|
|
|
I can encode WAV in disk to WMA.But how to encode the CD audio format data in memory to WMA?
Rap off for you,for me,for our human.
|
|
|
|
|
I had created a 3D cube so that it can rotates around a point.
However, when the cube is drew, some faces will disappear in certain angle while other diappear in another angle.
Can anyone please help why this occured ??
Or can anyone give some example on how to programme it??
Thanks very much!!
|
|
|
|
|
i think that is a problem of the normals.
a normal tells a face in what direction to reflect the light, so when u look at its back, u won't see it anymore.
remove the calls to glNormal3x and it should be fine.
Don't try it, just do it!
|
|
|
|
|
In fact, the problem now is that,
The six faces of the cube just like have their own 'priority',
such that one specific face will always on top
and then the second and third.... according to the 'priority'....
can this be solved ??
Thanks very much...
|
|
|
|
|
Sounds like you have depth buffering disabled. You'll need to have a depth buffer created when you're creating the OpenGL display, you'll need to enable depth testing (with glEnable(GL_DEPTH_TEST) ), and you'll need to clear the depth buffer at each frame (glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT) ).
- Mike
|
|
|
|
|
I have checked the depth testing is enabled and the buffer was clear each time...
I doubt if the GLUPERSPECTIVE will also cause this problem...
Can anyone tell me how to use this function ??
I have looked at the document of the GLUPERSPECTIVE but I dont think it really help...
BTW, what does "clipping plane" mean ??
Thanks very much again and again...
|
|
|
|