|
Hi Guys,
The 'shellexecute' one is good , but how to call it from vc++ application, please give me step by step details for the whole process. AND can v handle exceptions for 'shell execute' and can it be kept between BEGIN & COMMIT TRANSACTION of CDatabase Object?
And Ribah, how can v refer to the table(F1,F2...) name on a remote server in "INSERT INTO (.F1,F2.......)......." please explain.
hey guys please take ur valuable time and help me one last time. if i can do this , my biggest task in my project wil be done.
Waiting for ur reply..........
Regards
Prax
|
|
|
|
|
i have 2 class a and b like this:
//heder file a
#include "b.h"
class a
{
b objb;
}
//heder file b
#include "a.h"
class b
{
a obja;
}
vc++ can not complie these codes
please tell me how can i do that?
|
|
|
|
|
u cannot do this even if it compiles, object are wrong, just create a parent object class for both and inherite a & b classes from it then u publish an Object variable in both classes and on runtime u cast it to whatever u want...
|
|
|
|
|
Try store not objects, but pointers:
<br />
<br />
class b;<br />
class a<br />
{<br />
b* pObja;<br />
}<br />
<br />
<br />
class a;<br />
class b<br />
{<br />
a* pObja;<br />
}
|
|
|
|
|
My friend and I are working on a game that will be put on web as a shareware, much like the original Doom. However, how do we generate a CD-key everytime a customer register? Anyone has done this before?
Thanks
-----------------------------
C++ without virtual functions is not OO. Programming with classes but without dynamic binding is called "object based", but not "object oriented".
|
|
|
|
|
Try looking for "software dongle" in google. There are some free stuffs in there.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)
|
|
|
|
|
Dear programmers,
I am capturing audio PCM with 8-bit and 16-bit from DirectSound.
As you see below zero values are 128 for 8-bit and 0 for 16-bit.
BITS VALUE RANGE ZERO VALUE
---- ----------- ----------
8-bit 0 to 255 128
16-bit -32768 to +32767 0
Recently, I examined captured audio data sream for both 8 and 16 bits and I notify a strange result.
When I capturing 8-bit audio the audio signal is oscilation near the 0x80 (128). It is OK.
But, when I capture 16-bit audio PCM; the data is oscilating periodically from 0 to 0xffff. I copy/paste below 22050 KHZ 16-bit MONO audio PCM which is captured from microphone[ there is no high volume noise or sound source while recording]. The PCM data is consist of only air & EM noise. But there are peaks near the 0xFFFF, it is not normal. What may cause to this high amplitude audio peaks.
I tried this with two different SoundBlaster but nothing has changed.
What may offer you.
Thanks and best regard.
ff f0 (peak)
00 14
00 1e
ff eb (peak)
00 16
00 2c
ff f8 (peak)
00 1a
ff fe (peak)
00 11
00 07
ff e4 (peak)
00 13
00 04
ff ea (peak)
00 0c
00 40
00 2d
00 15
00 15
00 08
00 1b
00 0c
00 0e
00 1d
ff ff (peak)
|
|
|
|
|
I need to load a csv file into mdb in my code.
I think the fastest way to do it is using bulk update of records, but although the msdn indicates it is possible to update bulk rows of data using SQLSetPos,I can't find an example of such code.
Can any one help ?
|
|
|
|
|
|
Hello everyone,
An error occur when I debug the follow codes,please help me tofind the errors,Thanks!
DDSURFACEDESC2 ddsd;
LPDIRECTDRAWSURFACE4 g_pDDSBack = NULL;
//DirectDraw back surface
HRESULT hRet;
memset(&ddsd, 0, sizeof(ddsd));
ddsd.dwSize = sizeof(ddsd);
ddsd.dwFlags= DDSD_CAPS | DDSD_HEIGHT | DDSD_WIDTH |
DDSD_PIXELFORMAT | DDSD_BACKBUFFERCOUNT;
ddsd.ddsCaps.dwCaps = DDSCAPS_OVERLAY |
DDSCAPS_VIDEOPORT |
DDSCAPS_SYSTEMMEMORY|
//DDSCAPS_VIDEOMEMORY |
DDSCAPS_FLIP |
DDSCAPS_BACKBUFFER |
DDSCAPS_COMPLE
FALSE;
ddsd.dwBackBufferCount = 1;
ddsd.dwWidth =g_SurfWidth;
ddsd.dwHeight =g_SurfHeight*g_Factor;
ddsd.ddpfPixelFormat.dwFlags = DDPF_FOURCC;
ddsd.ddpfPixelFormat.dwFourCC=mmioFOURCC
('Y','U','Y','V');
Line1:
hRet = g_pDD->CreateSurface(&ddsd, &g_pDDSBack, NULL);
Note :
g_pDD is a created LPDIRECTDRAW4 vairable
Add I have checked the value of g_pDD.
It's not zero!
g_SurfWidth,g_SurfHeight,g_Factor are all initialzed!
but When I excute the program g_pDDSback is zero!
why?
Is there some errors at the setting of ddsd?
free like a bird
|
|
|
|
|
You've not told us what this code snippet is doing. What value does hRet have after calling CreateSurface() ?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Sorry!I forget!
After calling CreateSurface()
hRet=DDERR_NOOVERLAYHW;
Is that means display doesn't support overlay surface?
Thanks!
free like a bird!
|
|
|
|
|
Guoguor wrote:
Is that means display doesn't support overlay surface?
Correct, no overlay hardware is present or available.
"Opinions are neither right nor wrong. I cannot change your opinion of me. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
I’m about to distribute an ActiveX and would like to register it. How do I do in an easy way (easiest possibly).
Is it free to do it?
All tips are welcomed!
_____________________________
...and justice for all
APe
|
|
|
|
|
You have to buy some certificate from VeriSign or Thawte or any other public certificate authority (which is included in the list of Trusted Root Certificates in IE) and then use tools from the SDK as described for signing the files.
The certificate is unfortunatelly not free
|
|
|
|
|
Hi there,
I'm developing an ActiveX control, for that I need to pass CPoint array to an Automation Member. So Can Anyone say How to Convert from CPoint* to VARIANT FAR.
TIA
-------------------
Rajesh Parameswaran
|
|
|
|
|
hi all,
I have a Method like this:-
void CMyprogramDlg::Addcustomers(BSTR bstrParty)
{
CListBox m_lbParties;
_ASSERTE( bstrParty != NULL);
m_lbParties.AddString(bstrParty);
}
But when I compile this,I am getting such a Error:-
"error C2664: 'AddString' : cannot convert parameter 1 from 'unsigned short *' to 'const char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
"
How do I solve this?
If anyone know this please help me..
Thanks in Advance..
|
|
|
|
|
Add string requires the char* and you are suplying the BSTR here.
You need to convert it from UNICODE BSTR to the normal string or force the listbox to accept BSTRs
|
|
|
|
|
You could use CString to convert from UNICODE to char string like this: m_lbParties.AddString(CString(bstrParty)) or use WideCharToMultiByte function. You must also create list box before you call AddString .
Regards,
Andrzej Markowski
|
|
|
|
|
Dear all,
in VC++ we can find the username by calling GetUserName () API. But how to find the Domain name ? please help me.
Regards,
Jijo.
________________________________
Yesterday is history,
Tomorrow is a mystery,
But today is a present.
|
|
|
|
|
look at IADsADSystemInfo documentation, there's everything you may need.
|
|
|
|
|
Dear Geo,
Thanks a lot.
Regards,
Jijo
________________________________
Yesterday is history,
Tomorrow is a mystery,
But today is a present.
|
|
|
|
|
Use NetWkstaGetInfo() to get the name of the domain to which the workstation belongs. Use NetWkstaUserGetInfo() to get the name of the domain in which the user is currently logged on
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Dear David,
Actually i was searching for this type API... Thank you very much...
Regards,
Jijo.
________________________________
Yesterday is history,
Tomorrow is a mystery,
But today is a present.
|
|
|
|
|
Hello,
I have a button, I want to change the look of the button when the mouse is over and when the button is pressed and released. The look and feel should be similar i.e exact replica when a menu item button is clicked. I know that I have to do this in OnDrawItem. But without using bitmaps for changing the look and feel of button, I want to use some drawing operations. Can anyone please help me to do this?
Thnaks
Madhavi
|
|
|
|