|
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...
|
|
|
|
|
Have you checked the order of your points (glVertex's) defining the cube?
You could also try NeHe:
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=05
|
|
|
|
|
Hello, I need a comparison from you guys please.
If I gave you a spec for a simple business app. Gui front end with OO backend and sql server database and told you it would take around 1500 hours to do in c#, how long would you say the equivalent in visual c++ would take from your average decent c++ coder? I am not good enough with c++ yet to make a determination for my client.
The app is nothing more than db access. Manipulating data in a database. There will be one section that will read from excel and import to the database.
What about the same system written in c++ that would run on linux and db2 as a backend? How much overhead would this add to the VC++ version on Windows?
Thanks!
|
|
|
|
|
you can't really compare (IMHO) ; there are too many factors involved, libraries used, verbosity of the language, facilities of integration with DB (libraries)... and the maintenance factor.
if you start talking about multiplatforms, then, your choice of language is reduced, I don't think a version of C# exists on linux yet; and you need to get a good enough toolkit for the GUI for both platforms ( windows and linux ), in that case, you choice is reduced to C and C++.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Yeah, we started doing it in c# then they decided to maybe go to linux. I'm trying to get a feel for how long a write would take in c++. If they do go to linux, it would only have to support linux.
If you had open reign to do this project in c++ on linux, knowing it would take about 1500 hours in c# for Windows, can you give me a general comparison? Would it be 3x as long? 6? etc. I just need general numbers.
|
|
|
|
|
If you want a nice multiplatform C++ toolkit use Qt[^]. The commercial license is a bit pricey (~ $2500 USD) but it is very nice. I would guess the time to be comparable as Qt is a large framework with much of the same functionality as .net, and they have built in database support, which I take it is a big deal for you on a project like this.
I'd like to recommend the VCF[^], but unfortunately it's not completely ported to linux, and it has no database support.
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
|
|
|
|
|
Thanks, I'll check it out. Can you give me any time comparisons? If I used Qt can you give me a very rough estimate compared with 1500 hours in c#?
Thanks!
Price of it doesn't matter...Just roll it over to the client...
|
|
|
|
|
Couldn't tell you. Assuming you learn the Qt API reasonably well (and it looks quite easy and logical, so I can't imagine too many pitfalls in learning it, certainly no more than learning .Net API's), I'd guess the time to roughly equivalent, at least for the GUI implementation.
But I'm completely guessing here, sorry I don't have more info for you!
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
|
|
|
|