|
csv stand for Comma seperated value
|
|
|
|
|
philiptabraham wrote: csv stand for Comma seperated value
I'm more than aware of that.
In any case, how are you wanting to read said file?
"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
|
|
|
|
|
I am trying to maintain an old program that uses
///////
RECT rc;
GetWindowRect(&rc);
MoveWindow (rc.left, rc.top, rc.right-rc.left, rc.bottom-rc.top);
ScreenTo Client (&rc);
m_buttonDisable.Create("Disable",WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON | WS_DISABLED,
CRect(rc.left+360+horizBtnOffset,rc.top+35+vertBtnOffset,
rc.left+430+horizBtnOffset,rc.top+65+vertBtnOffset), this, IDC_BUTTON_DISABLE);
///////
to draw Group Boxes around similarly created buttons.
It all works fine if the desktop theme is set for "Windows Classic" but if another theme (e.g. Windows XP) is selected, the thicker title bar obscures part of the text. I do not want to re-write the code as it is much more complex than the snippet shown. What I would like to do is detect the Windows desktop theme and adjust the "vertBtnOffset" to move the label.
Is this possible?
If so can you give me a guiding light?
Thanks for any help.
|
|
|
|
|
cgb143 wrote: What I would like to do is detect the Windows desktop theme...
Can you look here:
HKCU\Software\Microsoft\Windows\CurrentVersion\Themes\LastTheme
"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
|
|
|
|
|
Thanks for your response, unfortunately I don't understand it.
Is this in the registry?
How do I access if from within my program?
|
|
|
|
|
cgb143 wrote: Is this in the registry?
Yes.
cgb143 wrote: How do I access if from within my program?
With the registry API.
"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
|
|
|
|
|
Hello,
I am trying the following code and getting link errors
#include "stdafx.h"<br />
#include "HttpClient.h"<br />
#include "Wininet.h" <br />
#ifdef _DEBUG<br />
#define new DEBUG_NEW<br />
#endif<br />
<br />
<br />
CWinApp theApp;<br />
using namespace std;<br />
int main(void)<br />
{ int nRetCode = 0;<br />
HINTERNET hInternet;<br />
char *appName = "My App";<br />
<br />
hInternet = InternetOpen(appName,<br />
INTERNET_OPEN_TYPE_DIRECT,<br />
NULL,<br />
NULL,<br />
INTERNET_FLAG_ASYNC<br />
);<br />
<br />
return nRetCode;<br />
} And Errors I am Getting is as follows:
HttpClient error LNK2019: unresolved external symbol __imp__InternetOpenA@20 referenced in function _main
HttpClient fatal error LNK1120: 1 unresolved externals
I dont know what is going worng. Plase HELP ME
|
|
|
|
|
You forgot to link Wininet.lib .
Prasad
MS MVP - VC++
|
|
|
|
|
Hi,
I'm using VS .NET 2003. Whwn I generate my application, I used to have a lib generated as well.
Since this morning, I don't know what I changed in my vcproj, but when the exe is generated, I don't get the lib as well.
I've spent many hour trying to find why, but I need help !
Anyone know how to make sure the lib with be generated ?
Thanks for your help !
Jerome
|
|
|
|
|
Have a look at linker-->Advanced-->Import library option. See, if lib name is mentioned there.
Be sure, your program is exporting something.
Prasad
MS MVP - VC++
|
|
|
|
|
Can someone clarify this pls?
I need to expose my C++ methods to remote clients on a network. The client applications which use my C++ methods can be implemented in any language ( Java, VC++, C#, VB.NET, PHP etc ). I wish to use SOAP , without the HTML wrapper and without using any webserver ( IIS or Apache ), but still maintaining the interoperability. Basically it is like implementing webservices without the IIS or Apache.
Can someone throw some light on the possibility?
Gokhale
|
|
|
|
|
Try GSoap[^].
The Link ist to the part of the Docu that describes how to make a standalone-SOAP-Server.
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
Hello,
i started my project in VS2003 and since some months in VS2005
Before, in 2003, the Buttons were in XP Style, now with 2005 they are
Windows2000 Style.
Is there a special Resource to replace?
Big thanks
|
|
|
|
|
In the project settings there is a section for the manifest. You got to include one.
Greetings from Germany
|
|
|
|
|
Danke für die Antwort,
was genau muss ich dort hinzufügen?
|
|
|
|
|
Projekt->Linker->Manifestdatei->M. generiern <ja>
Projekt->Manifesttool->Eingabe und Ausgabe->M. einbetten <ja>
Oder eine eigene Manifestdatei. (eher Sonderfall)
Greetings from Germany
|
|
|
|
|
Ok, Danke trotzdem
|
|
|
|
|
usually the XP styles are included calling
InitCommonControls();
in the first line of
BOOL MYApp::InitInstance()
before
CWinApp::InitInstance();
Russell
|
|
|
|
|
I use the BCGSoft-Librairy, if i set the Button type to CBCGPButton, it works fine
Thanks nevertheless
|
|
|
|
|
How do I create an irregular shaped window with transparent holes in the middle? I do not have an image and have to draw the window in the WM_PAINT event using GDI+. Any ideas would be welcome.
Thanks.
---
Hakuna-Matata
It means no worries for the rest of your days...
It's our problem free, Philosophy
"I think my response was 'What idiot dreamed this up?'" -- Mary Ann Davidson, Oracle's chief security officer, in typical blunt manner, remembering her reaction to the company's scheme to brand its databases as "unbreakable."
|
|
|
|
|
The only way I know is to use SetWindowRgn, and you will find several articles on CP about that (try looking in the dialog section). You can make the region any way you like (including processing a bitmap / making rectangles, etc)
Its possible that you can do funky alpha transparency stuff in vista, but that's outside my experience.
Iain.
|
|
|
|
|
|
Hi,
Thanks for your reply. Well, I can always create an irregular shaped window using SetWindowRgn() but the problem with SetWindowRgn() is that the edges of the irregular window are not antialiased. I need to create a rounded rectangle window with the rounded part antialiased. Also, parts of the window need to be transparent like a circle in the middle of the window.
Thanks...
---
Hakuna-Matata
It means no worries for the rest of your days...
It's our problem free, Philosophy
"I think my response was 'What idiot dreamed this up?'" -- Mary Ann Davidson, Oracle's chief security officer, in typical blunt manner, remembering her reaction to the company's scheme to brand its databases as "unbreakable."
|
|
|
|
|
Multiple windows? Could you create two semicircles and put them esde to edge to create the hole in the middle you are looking for?
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
Can't help with the antialiased thing, but I *think* theres some (eg) SetWindowAlpha function under vista I read about. (I did a search, and that's not the right name).
Failing that, can't you make a region with a hole? Or did you try that and fail? You cna use CombineRng to merge regions to make them bigger, holes, etc...
I don;t see anything in the docs for SetWindowRgn saying it has to be a solid region...
Iain
|
|
|
|