|
in the projectsettings->C/C++ tab add _UNICODE,UNICODE to other defines.
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
i have to show a dynamic graph layout, and it must be interactive and rearranged everytime an user insert or delete a determinate node... The application may be similar to Touchgraph (www.touchgraph.com) or kaon (http://kaon.semanticweb.org/demos). The problem is that i must create the application with some C++ library instead that java. Do you some idea? Do you know some library, some examples or some free C++ sourcecode witche may help me???
Sorry for my english, Bye, thanks!
|
|
|
|
|
for your requirement GDI/GDI+ will suffice. checkout how to draw line, circles etc for your graph requirement.
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
Hi, I have a set of radio box in my a group box.
I could not set any of the radio buttons.
the member variable is of type int.
I try to set it using m_membervariable = 0 and so on.
Thanks,
Deepak Samuel.
|
|
|
|
|
Deepak Samuel wrote:
m_membervariable = 0
Have you called UpdateData() for your changes to be reflected
on your dialog/sheet?
Also make sure that your radio buttons are tab sequential.
I Dream of Absolute Zero
|
|
|
|
|
Forget about using UpdateData() . Assign each of the radio button controls to a CButton member variable. Then just call SetCheck() accordingly. If you want to operate on a group of radio buttons, just use CWnd::CheckRadioButton() .
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
I want to know how does a project work. I mean I want to know the relationships between the files. How do the files include each other? And what are .obj files?
|
|
|
|
|
Anonymous wrote:
I want to know how does a project work. I mean I want to know the relationships between the files.
I suppose the top-level file in a project is the .dsp file. This text file is similar to the older .mak files, in that it lists what source files belong to the project and how to compile them.
While it's hardly a requirement, most .c and .cpp files have a coresponding .h (or .hpp) file. Any piece of code that wishes to use something located in another .c or .cpp file must #include the coresponding .h (or .hpp) file. At the very least, a forward declaration is required.
Anonymous wrote:
How do the files include each other?
The #include preprocessor directive.
Anonymous wrote:
And what are .obj files?
They are what the compiler creates from the source files. The .obj files are then "fed" to the linker.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
oh no,
project file is no a makefile !! the joke is that the makefile are temporary created files at compile time... if you want to see what is in it, do (under Visual C++ 6) : Project/Export makefile... then follow the Dialog box...
TOXCCT >>> GEII power
|
|
|
|
|
toxcct wrote:
project file is no a makefile
Nowhere did I say that a project file was a makefile. I said the former was like the latter, in that it contained the files comprising the project and how to build them. It was not implied that one could use cl.exe with a .mak file. However, you can use msdev.exe with a .dsp (or .dsw) file.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
This forum is for asking concrete questions, if you want to learn how the c++ language works, then you have to do it somewhere else!
Don't try it, just do it!
|
|
|
|
|
I'm trying to localize a Windows installer package (.msi) built with VS.net 2003. I followed the steps written in MSDN.
However, only the "Preparing to install" dialog is displayed in the localized language, the rest of the installer is still in English. The language/codepage ID's seem to be OK, the localized strings are also in the MSI. (I'm using an English Windows but it should not be the problem as the "Preparing to install" dialog is localized and other programs can also use localized installers.)
Have anyone ever met this problem? Any tips?
|
|
|
|
|
I'm trying to get a very basic Client-Sever app using sockets to communicate (Below are the code snipets). First I start the server, it connects to port 6001 and waits. The client starts up and connects and sends a string, the server accepts the connection and tries to read data into dwValue but I get nothing - they do not communicate after the connection, any ideas why ??
Thanks in advance !!
------------
Server Code:
m_sockRecv = new CSocket;
CString dwValue;
CSocket sockSrv;
sockSrv.Create(6001);
sockSrv.Listen();
CSocket sockRecv;
sockSrv.Accept(sockRecv);
CSocketFile file(&sockRecv);
CArchive arIn(&file, CArchive::load);
CArchive arOut(&file, CArchive::store);
arIn >> dwValue;
Client Code:
CString str = "9";
csocket.Create();
csocket.Connect("localhost",6001);
CSocketFile file(&csocket);
CArchive arIn(&file,CArchive::load);
CArchive arOut(&file,CArchive::store);
arOut << str;
|
|
|
|
|
Could someone possibly explain how the bitmask "mask" property of the LVITEM structure works?
typedef struct _LVITEM {
UINT mask;
int iItem;
int iSubItem;
UINT state;
UINT stateMask;
LPTSTR pszText;
int cchTextMax;
int iImage;
LPARAM lParam;
#if (_WIN32_IE >= 0x0300)
int iIndent;
#endif
} LVITEM, FAR *LPLVITEM; I'm trying to do something similar in my program, but I can't figure out how the LVIF_* flags work to denote which fields are valid and which are not. Any help or points in the correct direction are very appreciated. Thanks.
- Aaron
|
|
|
|
|
It works in 3 ways
1. when you are inserting the item.
mask represents the valid field that you have filling up and that the listview control should take note of it or safe it in its internal buffer.
2. When you get LVITEM in response to some notification.
now the mask represents the valid data that this structure contains.
3. When you are trying to retrive some information like GetItem.
now the mask represents the fields that you are interested to retrive
If you are trying to insert an item and say you want to put some data in lparam then you should according set the bit in the mask to indicate that you are providing that field. If you dont set the bit then lparam is ignored.
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
Thanks for the reply. Unfortunatley it doesn't really answer my question. I'm not really concered with LVITEM, but simply used it as an example. I'm interested in how the bitmaks actually works. I want to use a bitmask in my program to do something similar, but I don't really know how setting a bit in the mask makes an item in the structure valid. Is it simply a check (like an if statement or something) that Windows does? So for example if I set the LVIF_TEXT flag does Windows have a check something like
if (mask & LVIF_TEXT)
Thanks again.
- Aaron
|
|
|
|
|
You need to take a look at the logical bit operations in this article.
Look at the sections that deals with bitwise Masking:
Here[^]
I Dream of Absolute Zero
|
|
|
|
|
Yes thats exactly how it works.
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
Is there a way I can use the switch case statement to specify a range of numbers. ie
switch(val)
{
case 100 to 300:
break;
case 500 to 750:
break;
}
or equivalent to ON_COMMAND_EX_RANGE in MFC but the SDK version.
Thanks
|
|
|
|
|
no
you could:
switch(val)
{
case 100:
case 101:
case 102:
case 103:
...
case 300:
break;
case 500:
case 501:
case 502:
...
case 750:
break;
}
which could be prettied up by a #define
switch(val)
{
CASE_100_TO_300:
break;
CASE_500_TO_750:
break;
}
The maximum characters for the signature is five hundred. I was wondering how long a five hundred characters message would be, so I decided to make my signature 500 characters long. I'm sure if I had some cool html stuff in my signature, I could eat up five hundred characters, but just typing five hundred characters takes quite some time. The trick I think is finding something to say, but I'm usually a man of few words. So I guess I'll tell you what I've discovered is the secret to life. It
|
|
|
|
|
No, i would rather go for if statement.
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
|
Ravi Bhavnani wrote:
Use Pascal instead.
That's usually a better choice in any case...
Will Build Nuclear Missile For Food - No Target Too Small
|
|
|
|
|
another trick might be:
switch (val<=300?1:(val<=750?2:3))
{
case 1:
break;
case 2:
break;
case 3:
break;
}
--
Joel Lucsy
|
|
|
|
|
oh, i don't think it really works...
the compiler might say that val<=300?1val<=750?2:3) is not a constant expression.... (i don't know why but... )
TOXCCT >>> GEII power
|
|
|
|