|
Thanks, that did seem to work. The sweet irony is, though, that the Sqlfront.h has a compiler error itself:
Compiling...
testLibraryDlg.cpp
c:\program files\microsoft visual studio\vc98\include\sqlfront.h(126) : error C2146: syntax error : missing ';' before identifier 'LPINT'
c:\program files\microsoft visual studio\vc98\include\sqlfront.h(126) : error C2040: 'PTR' : 'int' differs in levels of indirection from 'void *'
c:\program files\microsoft visual studio\vc98\include\sqlfront.h(126) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
I'm trying to use SQLBrowseConnect to connect to an unknown server name now, but I'm having even less luck with that. I cut and pasted the example in the MSDN help, but it's got it's own compile errors.
halblonious
|
|
|
|
|
Try moving #include <sqlfront.h> down a few lines (i.e., so that windows.h is included first).
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Thank for responding. Somehow, I got SQLBrowseConnect to work for me, so that serves the purpose I needed. Thanks, though.
--Evan
halblonious
|
|
|
|
|
halblonious wrote:
Somehow...
You don't remember what you did to squelch the errors with sqlfront.h?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
No, I never figured it out. I just gave up and moved on to a different function. It took me a while, but I got SQLBrowseServer to work for me.
halblonious
|
|
|
|
|
I have an application where I create modeless dialogs. I want to remove the X (Cancel) symbol on the title bar. I have tried removing it with the properties for the dialog, but that doesnt seem to work. I have many dialogs and need to be able to move them around, etc. Can I use a graphics editor to remove the symbol? Can someone tell me how I might remove it.
Thanks.
Jerry
|
|
|
|
|
When you call the window's Create function, try looking at the various styles. I can't remember off the top of my head, but I'm pretty sure there's one that specifies whether or not there should be a Close button.
Remember, even if you win the rat race, you're still a rat.
|
|
|
|
|
It will go away if you disable the system menu.
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
It that one of the properties for the dialog?
Thank You.
Jerry
|
|
|
|
|
I got it to work, I found it, thanks again.
Jerry
|
|
|
|
|
Try this tool. Auto tracing all apis and activex interface.
It isn't need source code.
Auto Debug Tool
|
|
|
|
|
Hi,
I have an executable that handles user login. I want to make information (UserData oject) on currently logged in user available to other applications. Any suggestion on how to do this? I know this can be done by creating a DLL that exports the requested data. Can someone give me more details on how to do this?
Sample code will be well appreciated.
Thanks.
|
|
|
|
|
Try this[^] article, or one of the others in the Threads and IPC section.
Remember, even if you win the rat race, you're still a rat.
|
|
|
|
|
Hi!
I've got a program that globally installs a hook DLL and captures WM_MBUTTONDOWN message. This is no problem at all, it works wonderful. However, sometimes when I restart my app it looks like the hook DLL cannot be loaded and no WM_MBUTTONDOWN message are captured.
In this case I close my app (which loads the hook DLL), wait a few minutes, restart the app, and then everything works fine again. What'g going on there?
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Need to turn of the ellipsis for the ListView. I am creating the List View with No Header at runtime. I get ellipsis in XP style, when using the manifest file. If I don't use the manifest file, then it shows the whole string.
How can I turn of the ellipsis.
Any help is appreciated
|
|
|
|
|
What is the meaning of turn of ellipse?
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
By Ellipsis I mean three dots (...)
|
|
|
|
|
I assume you mean 'turn off' rather than 'turn of', since that makes no sense.
This is happening because with no manifest the control is drawing slightly differently, and has more client space. The easiest solution would be to make the control slightly bigger, and/or increase the column width.
Steve S
|
|
|
|
|
Yeah...sorry for the typo. I tried increasing the column width but still no avail.
No matter how big the Columnwidth still I couldn't remove the ellipsis.
I even tried wrapping the text in two lines after calculating the number of characters that will fit in the specified columnwidth by calling the function: GetTextExtentExPoint
Then I tried using the SetWindowTheme function which is sitting in uxtheme.dll
I still have the same result.
Any help
|
|
|
|
|
my classview info won't show up anymore and everytime I try to compile my program I get an error telling me that I can't access a protected member variable (value). but it's declared like this:
public:
char *value;
void release();
it was protected at once, but now it's not and I've rebuilt all a number of times and nothing seems to work. can anyone help?
If it's broken, I probably did it
bdiamond
|
|
|
|
|
Can you trim the class, including the member-variable access, down to just a few lines that exhibits the problem?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
thanks, I got it working. I was trying to cheat and mess with a class that I didn't write and change the access to public, but I found a right way to do it, so I don't have to worry about it. Thank you anyway!
If it's broken, I probably did it
bdiamond
|
|
|
|
|
If I have a pointer to an object foo is there anyway to tell if that object actually exists?
Say I only want one window open at a time.
void
foo::openWindow()
{
static foo* ptr = NULL;
if (ptr)
ptr->closeWindow();
ptr = this;
...
}
So, the second time through this code I want to know if ptr is still valid, because it may have been deleted without my knowledge.
I know there are other ways to do this, but I want to know if I can figure out if ptr still exists.
I've tried adding a ptr = dynamic_cast<foo*>(ptr); , but this throws an exception if ptr has been deleted, and I'd rather not use a try block.
Thanks in advance
|
|
|
|
|
I completely fail to see the purpose of your code, but that aside, you can simply check whether the 'this' pointer is NULL.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Yeah but if you create
foo *a = new foo();
foo *b = new foo();
a.openWindow();
b.openWindow();
delete b;
a.openWindow();
I know I could create a member and set it to this in openWindow and NULL in closeWindow, but I do not want to have a member for this.
If you change the code to use a dynamic_cast and put a try-catch(...) around it this will work as is, but the powers that be don't like try-catch, so I'm not allowed to use it.
|
|
|
|