|
Rajesh_Parameswaran wrote: m_pSet->Open(CRecordset::dynaset , _T("SELECT User FROM UserPass GROUP BY User;"));
If you suspect that the GROUP BY clause is the culprit, have you tried the query without it?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
The definition of structure xdr_pos in XDR.h file is like this
typedef struct {
enum xdr_op x_op; /* operation; fast additional param */
struct xdr_ops {
bool_t (*x_getlong)(); /* get a long from underlying stream */
bool_t (*x_putlong)(); /* put a long to " */
bool_t (*x_getbytes)();/* get some bytes from " */
bool_t (*x_putbytes)();/* put some bytes to " */
u_long (*x_getpostn)();/* returns bytes off from beginning */
bool_t (*x_setpostn)();/* lets you reposition the stream */
long * (*x_inline)(); /* buf quick ptr to buffered data */
void (*x_destroy)(); /* free privates of this xdr_stream */
} *x_ops;
caddr_t x_public; /* users' data */
caddr_t x_private; /* pointer to private data */
caddr_t x_base; /* private used for position info */
int x_handy; /* extra private word */
} XDR;
The declaration of variable of the type xdr_ops in the file xdrposix.c is like this
static struct xdr_ops xdrposix_ops;
But i am getting compiler error like this
Error 7 error C2079: 'xdrposix_ops' uses undefined struct 'xdr_ops' d:\cougar_io_development\cougar\core\libraries\cplusplus\dlls\andi.vs8\xdrposix.c 284
What is the reason? How to resolve this?
Regards, Eswari
|
|
|
|
|
C++ or C compiler?
See here [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
thank you. it worked. Basically the dll is written in c. But i am porting to VC++2005. But i am getting different error.
Error 12 error C2197: 'int (__cdecl *)(void)' : too many arguments for call d:\cougar_io_development\cougar\core\libraries\cplusplus\dlls\andi.vs8\xdrfloat.c 88
for the line (XDR_PUTLONG(xdrs, (long *)fp));
where the definition is like this in the header file.
#define XDR_PUTLONG(xdrs, longp) \
(*(xdrs)->x_ops->x_putlong)(xdrs, longp)
one more doubt. The same dll i am able to built in debug mode successfully without any code changes. Why changes are required in release mode.
Any help is appreciated.
|
|
|
|
|
hi All,
I have one Activex exe project in VB.
now, i want same thing in VC++.
pls help me how to create Activex exe in VC++??
Praveen Rao
|
|
|
|
|
ggdfgdfg wrote: hi All,
I have one Activex exe project in VB.
now, i want same thing in VC++.
pls help me how to create Activex exe in VC++??
Click here[^] (How NOT to ask a question)
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
|
Hi all,
I have developed a win32 console application, that has a notify icon in the taskbar. The problem is that I'm using the file name to load the icon, so if the ico file is not present, the icon can not be loaded.
For example:
...
niData.uFlags = NIF_ICON|NIF_MESSAGE|NIF_TIP;
LPTSTR szFileName = "SlotClient.ico";
niData.hIcon = (HICON)LoadImage( NULL,
szFileName,
IMAGE_ICON,
0,
0,
LR_CREATEDIBSECTION | LR_DEFAULTSIZE | LR_LOADFROMFILE );
strcpy(niData.szTip,"Application Running");
SetConsoleTitle((LPCSTR)"Test Application");
HWND hWnd = FindWindow(NULL, (LPCTSTR)"Test Application");
niData.hWnd = hWnd;
BOOL rc = Shell_NotifyIcon(NIM_ADD,&niData);
...
Q:How can I load an icon out of the dynamic link library 'user32.dll' so that when I can't find the .ico, I can load another one from the dll.
Many Thanks.
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
The best thing to do would be to display the icon that the system thinks is associated with that file type. Use SHGetFileInfo() with uFlags = SHGFI_ICON | SHGFI_LARGEICON (or HGFI_SMALLICON ).
|
|
|
|
|
Try using ExtractIcon API.
Regards,
Paresh.
|
|
|
|
|
Hi,
Thank you for the reply. Just one question if I may, how do I go about getting the handle to the instance of the application, seeing that I use a console application.
Many Thanks
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
GetModuleHandle(NULL)
HMODULE s and HINSTANCE s are the same beast in Win32 (a difference used to exist in the Win16 days) so feel free to cast between them.
Steve
|
|
|
|
|
|
|
|
I still could not find my answer . I need drag a image (bitmap or any image)on the dialogbox so that every time i drag I find it top and letf coordinated in the textbox .
RajeshGupta
|
|
|
|
|
rajeshgupta1253 wrote: I need drag a image (bitmap or any image)on the dialogbox so that every time i drag I find it top and letf coordinated in the textbox .
i didn't understand your question!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hello everyone,
I want to use a pdf Viewer ActiveX Control in my MFC Application.Can any one suggest a free ActiveX control for the same Or please suggest some ActiveX with low price.
Midhun M
|
|
|
|
|
Hi,
Have a look at Adobe ActiveX Control with MFC[^] I think it will help.
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
thank u..
Can i use the same Activex For creating pdf from my application
Midhun
|
|
|
|
|
Hi
I am having the following doubt regarding copy constructor
E.g If I have class A then the copy constructor will be
A(const A& x)
{
}
why it can't be
1. A(const A x)
{
}
2. A(const A* x)
{
}
Please give me the reason also
|
|
|
|
|
ragavan wrote: 1. A(const A x)
{
}
If the argument x is passed by value a copy is needed. This is the job of the copy constructor. Therefore we'd need to call the copy constructor to copy the argument to the copy constructor, and so on, endlessly recursively.
ragavan wrote: 2. A(const A* x)
{
}
Because an object itself need copying, not the object indirected through a pointer. It could have worked this was but it doesn't make as much sense.
Steve
|
|
|
|
|
From the C++ Standard ISO/IEC 14882-1998 12.8/2:
A non-template constructor for class X is a copy constructor if its
first parameter is of type X&, const X&, volatile X& or const volatile
X&, and either there are no other parameters or else all other
parameters have default arguments.
|
|
|
|
|
ragavan wrote: Please give me the reason also
interview question ahha
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
hi i have to copy an exe to the system (in a specified path)while installing an package and then run this exe until system restarts or shutdown. how to do this. any clues pls help me
|
|
|
|