|
prithaa wrote: What are the other alternatives of C++ with Unix or Linux
other than Java to handle Visual side of an application
Pick your weapon.[^]
|
|
|
|
|
vi, ÔÔÔÔÔ vi... (say vee-ay)
what, weren't we talking about powerful GUIs ?
|
|
|
|
|
Eiffel is one. Though the most-advanced IDE for it (EiffelStudio) is very expensive for commercial code, unless your product is open source in which case it is free.
Kevin
|
|
|
|
|
You can use C++ in Linux and Unix, just not the Microsoft Visual C++ IDE. Try Eclipse CDT[^] or KDevelop[^] if you need a graphical IDE.
|
|
|
|
|
Why asking twice ? couldn't you wait for 10 minutes ?
|
|
|
|
|
Hi,
Sorry
but I did not ask twice.It just happened that the network was not working properly and the Post message got clicked twice
Sorry again
Prithaa
|
|
|
|
|
prithaa wrote: Can VC++ work with Linux or Unix?
No.
Having said that, a friend of mine is using VC++ IDE to develop a Linux application. He edits files with VC++, and than uses g++ from Linux on VMWare to compile them and debug them (VMWare enables shared folders between the host and guest OS).
|
|
|
|
|
Technically, your friend's code is C++, not VC++. The 'V' part of the name is what makes it Windows vs. non-Windows. Visual Studio is the default editor for VC++.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Agree. That's why my response was "No".
|
|
|
|
|
Nemanja Trifunovic wrote: That's why my response was "No".
And prithaa was supposed to figure all of that out by reading "no?"
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi, it's me at new
I change the background color of my CFormView like this :
m_bgrBrush.CreateSolidBrush(*TheColor); // *TheColor is a DWORD RGB(x,x,x) from a class in the mainframe
HBRUSH MyView::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CFormView::OnCtlColor(pDC, pWnd, nCtlColor);
if((nCtlColor == CTLCOLOR_STATIC) || (nCtlColor == CTLCOLOR_DLG) )
{
pDC->SetBkColor(*TheColor);
return (HBRUSH) m_bgrBrush;
}
return hbr;
}
Now i want to change the background color at runtime.
A Invalitade() or RedrawWindow() doesn't change the color at runtime
Thanks
|
|
|
|
|
Do you want to change color of background if yes you need to insert new color
|
|
|
|
|
baerten wrote: pDC->SetBkColor(*TheColor);
you have to change TheColor color accordingly
"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
|
|
|
|
|
about dll problem,thank
i have two file
a static dll file ,another static Exe file
i think Exe call List Class in dll,but..........
************************static dll******************************
<<<<<list.h>>>>>>>>
#pragma once
class AFX_EXT_CLASS List:public CListCtrl
{
public:
__declspec(dllexport) List();
__declspec(dllexport) ~List();
__declspec(dllexport) void CMCreate(CWnd *pWnd);
DECLARE_MESSAGE_MAP();
public:
__declspec(dllexport) afx_msg void OnNMClick(NMHDR *pNMHDR, LRESULT *pResult);
};
<<<<<<list.cpp>>>>>>>>>
#include "Stdafx.h"
#include "List.h"
List::List()
{}
List::~List()
{}
BEGIN_MESSAGE_MAP(List,CListCtrl)
ON_NOTIFY_REFLECT(NM_CLICK, &List::OnNMClick)
END_MESSAGE_MAP()
void List::OnNMClick(NMHDR *pNMHDR, LRESULT *pResult)
{
AfxMessageBox(_T("OK"));
*pResult = 0;
}
void List::CMCreate(CWnd *pWnd)
{
this->Create(WS_VISIBLE | WS_BORDER|SS_NOTIFY | WS_TABSTOP | WS_CHILD | LVS_ALIGNTOP | LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_OWNERDRAWFIXED, CRect(20, 20, 800, 200), pWnd, 123);
}
*************************Exe************************
List *m_pList;
m_pList=new List();
m_pList->CMCreate(this);
why ,i Click m_pList not show "ok"???
my english is not good,sorry
thank you
Blog:
http://360.yahoo.com/rxgmoral
|
|
|
|
|
What happens when you click ok
|
|
|
|
|
rxgmoral wrote: void List::CMCreate(CWnd *pWnd)
{
this->Create(WS_VISIBLE | WS_BORDER|SS_NOTIFY | WS_TABSTOP | WS_CHILD | LVS_ALIGNTOP | LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_OWNERDRAWFIXED, CRect(20, 20, 800, 200), pWnd, 123);
}
try to make BreakPoint here! and debug through it
"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,
If I want to use VC++ with Linux or Unix .Is it possible or VC++ is only for Windows.
Prithaa
|
|
|
|
|
i'm not 100% sure, but VC++ is Microsoft IDE for C++ development, so, i doubt they allow it to target other systems than Microsoft's...
|
|
|
|
|
|
Hello,
I have a MDI app, that currently has one single document type.
I've changed the default APP and DOC icons. They appear correctly in the application, and in Windows Explorer, too.
But not in the app's (default) Open Document Dialog.
There appears the default DOC icon (sheet of paper and "DOC" in red on it).
How could I solve this, and make MY doc icon appear there?
Thankx
Zolee
|
|
|
|
|
dzolee wrote:
Hello,
I have a MDI app, that currently has one single document type.
I've changed the default APP and DOC icons. They appear correctly in the application, and in Windows Explorer, too.
But not in the app's (default) Open Document Dialog.
There appears the default DOC icon (sheet of paper and "DOC" in red on it).
How could I solve this, and make MY doc icon appear there?
change IDR_mainframe icon with your own!
"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
|
|
|
|
|
dzolee wrote: I've changed the default APP and DOC icons.
But did you change all of the sizes (e.g., 16x16, 32x32, 48x48) within the .ico file?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
Hello Experts,
I am in dilemma where i need to call a VB.net function in VC++.net. is it possible to do so, if yes then kindly provide me with the idea.
THANKS for the Support.
Kind Regards
Sandy
|
|
|
|
|
ksandy45 wrote: is it possible to do so
yes, but you're in the wrong forum for MC++.
ask the Managed C++ forum[^]...
|
|
|
|