|
Hello everyone.
I'm using a Microsoft Access database for storing some strings.
The field size is fixed at 64 characters.
Now my problem is the following:
When I read the value of that fields with SQLGetData the functions returns the string followed by many spaces (e.g. 10 characters and 54 spaces). Is it a problem with the database, a configuration error or a query error?
Thx for any help.
Don't try it, just do it!
|
|
|
|
|
Hello,
I try to do a simple application where I can drag and drop pictures.
I'm trying to use the COleDropSource class, and it's member function ::CacheData() as I read it in the Help, but I get an error message like this "CacheData is not a member of COleDropSource". What did I do wrong? Is that the right way or is there something easier/better to do it? Can anybody help me or give me an example of code that actually works?
Thanks
JET
|
|
|
|
|
Hi,
A better way is to create a temporary transparent window which covers the whole screen. Use GetSystemMetrics(SM_CXSCREEN) and GetSystemMetrics(SM_CYSCREEN) to get the window dims. Use its mouse events to control the drag.
|
|
|
|
|
ALOK
I HAD A DATA SAY "C:/TEMPURL"OF A VALUE SAY "DOWNLOAD" IN REGISTRY.I HAVE TO CHECK THE PRESENCE OF THE MENTIONED FOLDER IN THE GIVEN DATA.IF NOT PRESENT THEN CREATE THE FOLDER IN THE MENTIONED DIRECTRY.
PLS TELL ME APIs WHICH SEARCH AND CREATE THE FOLDER IF NOT PRESENT.
|
|
|
|
|
Hello Mr.Sunit
sunit5 wrote:
I HAD A DATA SAY "C:/TEMPURL"OF A VALUE SAY "DOWNLOAD" IN REGISTRY.I HAVE TO CHECK THE PRESENCE OF THE MENTIONED FOLDER IN THE GIVEN DATA
check for PathFileExists for checking existense of any folder or file.
sunit5 wrote:
TELL ME APIs WHICH SEARCH FOLDER
CFileFind Class in MFC help in this Regards
sunit5 wrote:
CREATE THE FOLDER IF NOT PRESENT.
Mr M.Dunn has written execellent warpper class for it.
you can found that at this url
http://www.codeproject.com/shell/cshellfileop.asp[^]
sunit5 wrote:
ALOK
Please Don't typecast your post to particular person
[Vote One Here, Complete my Survey....]
Alok Gupta visit me at http://www.thisisalok.tk
"I Think Believe this Will Help"
|
|
|
|
|
on using PathFileExists it is giving me linking error.
Creating library Debug/con1.lib and object Debug/con1.exp
con1.obj : error LNK2001: unresolved external symbol __imp__PathFileExistsA@4
Debug/con1.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
|
|
|
|
|
And please stop shouting. I'm growing deaf.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
sunit5 wrote:
PLS TELL ME APIs WHICH...CREATE THE FOLDER IF NOT PRESENT.
Use CreateDirectory() .
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
i used PathFileExists() to search for a folder.but it is giving me Linking error ..
Creating library Debug/con1.lib and object Debug/con1.exp
con1.obj : error LNK2001: unresolved external symbol __imp__PathFileExistsA@4
Debug/con1.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
|
|
|
|
|
You failed to link with Shlwapi.lib .
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
|
THANKS A LOT.TO EVERYONE
I FOUND THE SOL TO THE PROBLEM I DIDNOT ADD THE CONCERN .LIB
|
|
|
|
|
I have a dll which has a class say CxyView derived from CView,I need to use this dll in a separate SDI application.How can i make use of this view ie CxyView in the SDI application.
|
|
|
|
|
Hello,
I'm making a DLL using MFC and sockets. But when the function OnAccpet must be called, she doesn't been called. I don't understand why.
There is someone who can help me?
(I usually speak french, sorry to not write much details, ask me if you need it)
Thank you ^^
|
|
|
|
|
Anyone could tell me what is primary language in Macintosh like VC++ in Windows.
|
|
|
|
|
Objective-C is the "preferred" programming language for OS X.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
hiii...
i am overwriting the .RC file of a workspace/project with some dialog resources...
obviously wen i am executing the program i cannot see any output.....
how can i display the new dialogs that i have put into the .RC file wen the program is executed ?
for example....i have transferred the 4 dialog boxes of the Calculator (calc.exe) to one of my own VC++ 6.0 application....
regards,
kedar.
|
|
|
|
|
well, you need to CODE them ... add a dialog class, "plug-in" all the controls, add execution code, ... all the works ...
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
hiii...thanks for the info...
but stil can u send me a sample code of what u were tellin to do......or some link wher i can find a similar example.....
it would b a great help to me....
In anticipation,
kedar.
|
|
|
|
|
Hi Everybody,
we are using a cash system printer which is connected to the PC via USB.
The printer has an endless paper roll and also has a paper cut feature.
The printer supports 4 paper sizes:
- "80x210 mm"
- "80x297 mm"
- "reserved48"
- "reserved49"
The first two paper sizes are the maximum sizes.
So the printer cuts a print after 210mm or 297mm.
If you choose "reserved48" in Excel the printout is exactly
as long as needed.
But if I choose this paper size in my own applications
nothing is printed at all. The paper is thrown out about
1 cm and then cut.
I examined a little bit about Device caps but every value seems to be invalid.
The paper size specified in the DEVMODE is 1 pixel by 1 pixel, so not very
much ((
Does anyone know how to handle this?
I really appreciate every hint!
Thanks in advance,
Jens
|
|
|
|
|
Hey...
Ive been making a Program with Microsoft Visual C++ 6.0...
Ive made it so that my Main interface window has buttons, and ive made other CDialog resources but I dont know how to make it so when i click on the Button on the main interface itll open another CDialog window...
How would i do that?
<br />
void CClientDlg::OnButton01() <br />
{ <br />
<br />
} <br />
Just a Human Trying to Live in a Computers World.
|
|
|
|
|
easy...
<font color=#0000FF>void</font> CClientDlg::OnButton01() {
CMyDialog dlg;
dlg.DoModal();
}
I suppose CMyDialog is a CDialog derived object that is associated with your IDD_Dialog1 dialog
... you've got it
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
That Helps So Much! I have one Question tho... Its driving me Crazy...
<br />
void CClientDlg::OnButton01() {<br />
CClientDlg dlg; <br />
dlg.DoModal();<br />
}<br />
Works Perfectly, If i click on Button01, The main interface opens again (Note: So button activates Window)...
But i created a new Dialog, (Class: CButton01Dlg) (CPP: Button01Dlg.cpp) and when i use the following code it gives me 4 errors, 0 warnings...
<br />
void CClientDlg::OnButton01() {<br />
CButton01Dlg dlg; <br />
dlg.DoModal();<br />
}<br />
C:\*\ClientDlg.cpp(179) : error C2065: 'CButton01Dlg' : undeclared identifier
C:\*\ClientDlg.cpp(179) : error C2146: syntax error : missing ';' before identifier 'dlg'
C:\*\ClientDlg.cpp(179) : error C2065: 'dlg' : undeclared identifier
C:\*\ClientDlg.cpp(180) : error C2228: left of '.DoModal' must have class/struct/union type
Just a Human Trying to Live in a Computers World.
|
|
|
|
|
You probably forgot to include the header file of CButton01Dlg (Button01Dlg.h) in ClientDlg.cpp .
|
|
|
|
|
Hahaha... Your Right!!!
Thank you Both So very Much!
This problem has been driving me crazy all day long... Thanks!
Just a Human Trying to Live in a Computers World.
|
|
|
|