|
What about
if( m_cCombo.GetCurSel()!= CB_ERR)
{
CString strText;
m_cCombo.GetWindowText(strText);
m_nCount = _tstoi( strText );
} ?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
assertion failure
atlbase.h
|
|
|
|
|
I think you asked an encoded question about Inprocess Reco Engine previous can you decode your question, we cant guess your problem.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
runtime check failure
foo.cpp
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I want to create resource dll in vc++ under visual studio 2005.Plz help me, if u have any sample application,plz send the link.
Thank you
|
|
|
|
|
If you mean a resource only DLL, then create a Win32 DLL, add the resources and set the No Entry Point linker option to Yes.
Project Properties -> Linker -> Advanced -> No Entry Point
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Thanks for answering. Now plz tell me that How to add resources? Can u explain sir?
Thanks in advance..
|
|
|
|
|
There is a menu option for that.
Project -> Add Resource
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Let me explain u my problem.
I have an application in english. Now I want to add multilingual support for german and japanese too. So the problem is that how to add my English application's resources to German and French DLL, because this step is required to create resource only dll for German and Japanese language.
plz tell me that how can I add all resources such as Dialogs,menus,strings etc. from my English application to other language's resource DLL?
Thank You.
|
|
|
|
|
|
Thanks for answering sir but I have seen this link already, but it doesn't solve my problem.
I fu have any other link plz send me the link
thank you.
|
|
|
|
|
Why you cant use of it?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Hi,
I have added ScrollBar to my Dialog.I added variable and Message Mapping function to it.I am displaying Images in my Dialog.After one Scroll ScrollBar is disappering.
void EnhancedReport::OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
{
int CurPos = m_ScrollBar.GetScrollPos();
switch (nSBCode)
{
case SB_LEFT:
CurPos = 0;
break;
case SB_RIGHT:
CurPos = (m_filecount/8);
break;
case SB_ENDSCROLL:
break;
case SB_LINELEFT:
if (CurPos > 0)
CurPos--;
break;
case SB_LINERIGHT:
if (CurPos < (m_filecount/8))
CurPos++;
break;
case SB_PAGELEFT:
{
SCROLLINFO info;
m_ScrollBar.GetScrollInfo(&info, SIF_ALL);
if (CurPos > 0)
CurPos = max(0, CurPos - (int) info.nPage);
}
break;
case SB_PAGERIGHT:
{
SCROLLINFO info;
m_ScrollBar.GetScrollInfo(&info, SIF_ALL);
if (CurPos < (m_filecount/8))
CurPos = min((m_filecount/8), CurPos + (int) info.nPage);
}
break;
case SB_THUMBPOSITION:
CurPos = nPos;
break;
case SB_THUMBTRACK:
CurPos = nPos;
break;
}
m_ScrollBar.SetScrollPos(CurPos);
DisplayImages(CurPos);
}
|
|
|
|
|
You cant see your scrollBar when you show your images?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
First time I can able to see ScrollBar.When I do DoModal Dialog is coming with Images and ScrollBar.After one Scroll ScrollBar is missing.
|
|
|
|
|
How do you show your image?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
By using load() and Setbitmap() functions I am displaying Images in Dialog.
But Problem is with SCrollBar. ScrollBar is not working If I am not displaying Images also.
|
|
|
|
|
Can you send me your project?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Hi,
I am learning C++ and came around a few code expressions I cannot understand.
What do the fallowing codes mean or do:
1) expression:expression
2) expression::expression
3) expression->expression
Thanks for help
Rainer
|
|
|
|
|
expression is used like a alias to explain certain things.
For eg
1) expression:expression resembles class A:public B
2) expression::expression resembles class A::FunctionOfClassA()
3) expression->expression resembles
Node *n; // Node is a structure with a variable named as data, so n is a pointer of type Node
n->data //data is a member of node;
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
TheRainer wrote: 1) expression:expression
If it's in this context
class A : public B
it indicates class inheritance (A inherits from B in htis example).
If it's in this context
cond?something:something_else
it's a conditional expression that returns something if cond is true and something_else is cond is false.
TheRainer wrote: 2) expression::expression
This can indicate either class or namespace membership.
some_class::some_item explicitly references the some_item thing that is a member (inherited or otherwise) of some_class
some_namespace::some_item explicitly references the some_item thing that is defined in the namespace some_namespace
TheRainer wrote: 3) expression->expression
This is the simplest one. This is for accessing a structure or class member using a pointer to the structure or class instance. So:
struct A { int B };
int X(A* a_pointer)
{
return a_pointer->B;
}
It's equivalent to (*expression).expression
HTH!!!
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hello,
i am totally new to OpenGL or windows programming in general.
can someone please provide me with some code or tell me how to draw a rectangular clipping window on mouse move with only 2 vertices. So if i click somewehre in upper part of the window and then lower i should get a rectangle which is NOT filled and has dashed lines.
i am going to use this rectangle for clipping.
thanks
modified on Friday, February 27, 2009 12:23 AM
|
|
|
|
|
Googling can help you to get many OpenGL samples. There are many sites contains OpenGL tutorials.
BTW, this is not the forum for OpenGL. You can post it in Graphics Forum.
- ns ami -
|
|
|
|
|
See OpenGL[^].
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
There's a way described here: http://support.microsoft.com/kb/131368/en-us/
Question 1: Is it different when I add "SetMenu(NULL);" in the CFrameWnd::OnCreate() function?
Question 2: Why I got an error when I added "SetMenu(NULL);" in the CFrameWnd::PreCreateWindow() function?
|
|
|
|