Hi,
I want to build a soccer league table. But i need a starting point so i need your advices. Where should i start? I'm thinking to derive my main class from CWnd. Can you recommend me a good tutorial for this purpose? Or a general tutorial for GUI development? Or should i use ActiveX?
I'm a...
Hi, i'm trying to writing a program to manage my mp3 collection. The interface is splitted in two parts and the left part contains a tree control where bands, albums and songs are shown.
Now i've a few questions :
1) I can add a right-click menu to entire tree but i want to add different...
Hi,
I have splitted main window and on the left frame, i have a child dialog.
There are 2 things i wanna do:
1) To size the dialog according to the screen resolution. For example if the user's screen is set to 1024x800, i want to set dialog's height to 800 on startup.
2) Since the height of...
Hi,
I am using a splitter to divide the screen into 2.
In each part i use a CTabCtrl driven class. So i aim to place 4 View classes. The problem occurs when i try to place the (AppName)View class (I don't know the term used for this class, sorry).
Here are the code snippets:
// Application's...
Hi,
I'm working on a project with a tab control which has 2 tabs. Clicking on each tab activates an appropriate view class. When user clicks one tab the below code is activated in OnselChange function :
pMainFr->m_Splitter2.DeleteView( 1, 0 );
pMainFr->m_Splitter2.CreateView( 1, 0...
Hi, i have a modeless dialog in my application. I declared its variables private and i want to access them through Get & Set methods. When i press a button on the dialog i want to get the changed variables ( they hold values of textboxes ). So i use UpdateData(TRUE) in OnButton. But all i get...
Hi,
I desperately need a function parser for 3 ( preferably 4 ) variables. But i couldn't find one that suits my deeds. I only could find a parser for 3 variables written in Java and now i'm trying to translate it to Visual C++.
The question is what is the equivalent of HashTable in VC++?
I...
Hi,
I have a simple cube-rotating program( from DevX openGL tutorial). Mouse works fine when i have this piece of code
CPaintDC dc(this);
CBitirmeDoc* pDoc = GetDocument();
pDoc->RenderScene();
SwapBuffers(dc.m_ps.hdc);
in OnPaint method.
But i want to the cube to be drawn after i press a...
Hi,
I have a dialog which have a button on it.
I want to do one of the following :
1) As the title tells, catch the button click from doc class. As an instance of this dialog is a member variable of doc class.
like,
if( dlgInstance.m_buttonInstance. ...( something like OnClick() )
{...
Hi, i'm working on a project that's supposed to draw 3D plots. So i have a header file that includes gl.h and glu.h which reside in vc98\include directory.
But i get link errors such as :
OpenGL.obj : error LNK2001: unresolved external symbol __imp__glEnable@4
And same error for the rest of...
Hi,
i'm trying to write a simple matrix class. I want to a add a function that transpozes the matrix and returns the transpozed one.
CMatrix CMatrix::Transpose()
{
CMatrix mat;
int temp;
temp = m_ROW;
m_ROW = m_COL;
m_COL = temp;
(A) mat = new CMatrix( m_ROW, m_COL )...
Hi,
i have an int variable in a class derived from CDialog, and i need its value in another dialog class. Aside from declaring it static is there a way to access this variable?
Thanks in advance.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.