|
|
this are the error by just addind this line
_DBAccess dataccess;
error C2146: syntax error : missing ';' before identifier 'dataccess'
c:\myproject\wartz_new\wartz_newdlg.h(41) : error C2501: '_DBAccess' : missing storage-class or type specifiers
c:\myproject\wartz_new\wartz_newdlg.h(41) : error C2501: 'dataccess' : missing storage-class or type specifiers
wartz_newDlg.cpp
c:\myproject\wartz_new\wartz_newdlg.h(41) : error C2146: syntax error : missing ';' before identifier 'dataccess'
c:\myproject\wartz_new\wartz_newdlg.h(41) : error C2501: '_DBAccess' : missing storage-class or type specifiers
c:\myproject\wartz_new\wartz_newdlg.h(41) : error C2501: 'dataccess' : missing storage-class or type specifiers
|
|
|
|
|
Can some one suggest some C++ API or code snipper to check if a TIFF file is compressed using G4 compression.
-- modified at 0:44 Tuesday 26th September, 2006
|
|
|
|
|
Check the compression field in the header. The following values are possible:
Uncompressed 1
CCITT 1D 2
Group 3 Fax 3
Group 4 Fax 4
LZW 5
JPEG 6
PackBits 32773
Have a look at the LibTiff library.
I found the spec at http://partners.adobe.com/public/developer/en/tiff/TIFF6.pdf[^]
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
I want to create keys for my Installation of ReMeDi application which is telemedicin kit for giving treatment to patient who is at remote place.
The key should contains some logic which gives version name,mode of operation etc.
For that pls suggest me some C++ application which generate these keys automatically.
Abhijit.
|
|
|
|
|
Hi all!
I've a problem of decoding UTF-8 email. I got emails from my inbox and displayed it. But with emails which were writen by UTF-8, i couldn't decode it although i've used some functions to decode . Who can show me how to solve it.
Thank in advance!
Rgs.
RayCad
|
|
|
|
|
It's a little hard to help you without seeing the code that is giving you trouble, unless of course you want us to write the code for you???
|
|
|
|
|
Hello everyone,
I have a large number of strcture instances, the I can not have all of them in memory. So I have the idea of serialize/deserialize partial of them to/from disk. The operation I need on these structure instances is to enumerate elements one by one, and I want to provide applications which use this interface to enumerate elements be transparent to how and which parts of structure instances is written/read to/from disk -- and the application only will feel read from memory.
I am wondering whether there are any samples/tutorials to make a reference?
thanks in advance,
George
|
|
|
|
|
I don't think enumerating unknown members of a struct is possible. One thing you can do is add the Serialize and Deserialize functions directly to the struct. Both functions should take a byte array/pointer as the paramater for which the serialized data would be written to. From your cade all you need do is call the function and write the data to a file for each of your structs.
|
|
|
|
|
Thank you waldermort!
Serialize/Deserialize methods only provide ways to load to memory/persistent to disk, but the issue is, how to find an object by searching both memory and disk (since the object may not be in memory). How to save and how to decide which parts of objects are needed to be saved on disk? Any samples?
regards,
George
|
|
|
|
|
|
David Howe wrote: VC6.0 is an old IDE, it has no "line-number" feature, but with this VC6 addin, you can get this feature NOW! It is for those people who can't or won't turn to VS.Net, have a try!
Visit http://davidhowecn.googlepages.com/vc6linenumberaddin_english[^] for details.
The IDE shows 121 and your addin shows 114.
|
|
|
|
|
Did you change the font? if you changed the font in editor, a restart of IDE is needed.
|
|
|
|
|
David Howe wrote: Did you change the font? if you changed the font in editor, a restart of IDE is needed.
No I did not. The number font is bigger that the IDE font, that could be the problem.
|
|
|
|
|
Maybe this is a bug, though I didn't met this before. Thanks for the reply.
Btw, I can tell the thing Line-number addin does when it is being activated: it check from the registry to get the font(both font name and size) of VC6's code editor, and create the font to draw line numbers. maybe I need more debug in this process.
|
|
|
|
|
David Howe wrote: VC6.0 is an old IDE, it has no "line-number" feature...
Sure it does.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I have a big problem with my program.
When i run it with Debug file, it run normaly.
But, when i build it to exe in Release directory.
It run with error:
Unhandled exception in VISIODT.exe (COMCTL32.DLL): 0xC0000005: Access Violation.
What proplem is it?
Please help me!
Snow
|
|
|
|
|
|
At debug mode, I run normally.
At release mode, I can only run the first time. At the second time it show error and then, Breaken down.
-- modified at 4:29 Tuesday 26th September, 2006
I see difference between build At Release & Build at Debug.
How do i fix it?
======================================================
Linking...
Creating library ..\Librairies\Release/EtatCivl.lib and object ..\Librairies\Release/EtatCivl.exp
LINK : warning LNK4089: all references to "COMCTL32.dll" discarded by /OPT:REF
Répartition des fichiers compilés...
C'est fini...
======================================================
======================================================
Linking...
Creating library ..\Librairies\Debug/EtatCivl.lib and object ..\Librairies\Debug/EtatCivl.exp
Répartition des fichiers compilés...
C'est fini...
======================================================
|
|
|
|
|
On dialog box , i want to replace "OK" string to an Icon drawn by MFC tool.Can I do so?
all for development
|
|
|
|
|
It's very easy. If you want to know how to do it, plaese send me a message with your e-mail address and some detail questions? e-mail address:an_jaehyok@hotmail.com
|
|
|
|
|
If dialog box class that contains the button, is 'CMyDlg' and your icon resource ID, is 'IDI_BUTTON_ICON', and your CButton variable, connected to the button, is 'm_button1' :
1. Add the following member variable to CMyDlg : HICON m_hIconButton;
2. add these codes to the dialog box OnTnitDialog() function :
.
.
.
CWinApp* pApp = AfxGetApp();
if (pApp != 0)
{
m_hIconButton = pApp->LoadIcon(IDI_BUTTON_ICON);
ASSERT(m_hIconButton);
m_button1.SetIcon(m_hIconButton);
}
.
.
.
3. Craete a destructor for CMyDlg (if there isn't any), add this codes to it :
DestroyIcon(m_hIconButton);
4.Build your Application, and enjoy!
|
|
|
|
|
No , no , no !!!
I test this method and find that does not work properly.
|
|
|
|
|
you forget this step :
3.5 --> Set "Icon" characteristic with "true" in property page of that button .
|
|
|
|
|
Did you see SetIcon for display a icon onButton or SetBitmap for display a bitmap on button
|
|
|
|