|
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
|
|
|
|
|
Hi,
Have a look @ this article
http://www.codetools.com/buttonctrl/cbuttonst.asp
Sujan
|
|
|
|
|
|
Hi,
I want to do the same, but without loading the bitmap on button. My buuton should only contain text.
I hope u got my point.
Please give me some suggestions...
thnaks
madhavi
|
|
|
|
|
OnMouseHover event will simply solve what u r looking for either with Image or test, just drop some code there and u will see the difference
|
|
|
|
|
hi all,
I'm having a Error when I compilled my Project.
Error is
"error C2664: 'CreateWindowExW' : cannot convert parameter 2 from 'char [15]' to 'const unsigned short *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast"
Probelm caused Code Part:-
HWND m_hDisplay;
m_hDisplay = CreateWindowEx ( WS_EX_CLIENTEDGE, RICHEDIT_CLASS, NULL,
WS_CHILD | WS_VISIBLE | WS_VSCROLL | WS_HSCROLL |
ES_MULTILINE | ES_AUTOVSCROLL | ES_AUTOHSCROLL,
0, 0, 100, 100,
m_hWnd, (HMENU)IDC_IM_DISPLAY, GetModuleHandle(NULL), NULL);
There is a Problem in "RICHEDIT_CLASS" ..So what is the solution for that?..If anyone know this please help me ?
Thanks in advance..
|
|
|
|
|
Try the following:
CreateWindowEx ( WS_EX_CLIENTEDGE, _T(RICHEDIT_CLASS), NULL,
WS_CHILD | WS_VISIBLE | WS_VSCROLL | WS_HSCROLL | ......
Greetz,
Davy
|
|
|
|
|
hi Davy,
Many Thanks ...I compilled it.
|
|
|
|