|
If you can use it in VB 6.0 you will have not problem using it in VC++. Just simply import the type library that is declared for the active X control, and you can use.
|
|
|
|
|
Exactly what I thought, but they stress VB6 every time in all their documentation, seems strange they would exclude other development software.
Maybe they just don't want to support it in other development platforms.
I'm going to give the trial version a whirl and see what I can do with it, but I'm leery about it not being supported as this is going into commercial software.
Cheers
Ground Zero Tech-Works
http://www.ayanova.com
|
|
|
|
|
Check out Blue Marble Geographics or MapInfo or ESRI ( these last two may be overkill)
Dave Huff
There are no small projects - only young ones.
|
|
|
|
|
this is not visual c++ but i realy need help
my function is::
#include <stdio.h>
#include <conio.h>
int a,b,c,max,min,av;
void main() {
clrscr();
printf("1.number:");
scanf("%d",&a);
printf("2.number:");
scanf("%d",&b);
printf("3.number:");
scanf("%d",&c);
//--------------------
if(a>b && a>c)
a=max;
else if(b>a && b>c)
b=max;
else
c=max;
//---------------------
if(a
|
|
|
|
|
printf("max=%d\n",max); Et cetera.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
a=1 b=2 c=3
but when i runthe function prints like;
max=178
min=180
av=182
what is wrong
|
|
|
|
|
a = max;
...
b = max;
...
c = max;
...
Assignments work in other direction.
max = a;
...
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
I am looking for a free racing game. Old style racing game without any complicated 3D stuff. Around 4 MB download. If anyone has such a game, please inform me.
|
|
|
|
|
Hi,
Is it possible for a thread to suspend itself?? If yes, can you please give me a simple example??
What I know is:
(Class)*ptr;
...
ptr->SuspendThread();
But, can it be suspending itself??
Thank you!!;)
|
|
|
|
|
Just call SuspendThread from inside the thread code (I'm assuming you're using MFC worker threads, aren't you.) Of course, it has to be another thread that brings this one to life again with ResumeThread .
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Yes,.. I am using MFC worker threads.
Great! Thanks!!
|
|
|
|
|
Hi there,
Can somebody please help me????.
I have a list box and a text box in my application, i need to know how to load the value of the string in the list box, to the text box with the puSh of a button.
|
|
|
|
|
Add this code to the function that handles the event when the button is pushed.
- Send a LB_GETTEXTLEN message specifying the index of the listbox that you want the text for, This will tell you how much memory you need to allocate for the string.
- Allocate a buffer that is large enough to hold the string.
- Send a LB_GETTEXT message to the listbox specifying the same index.
- Call SetWindowText on the edit control in order to set the string into the edit control.
- Delete the memory that you allocated for the string.
If you are using MFC, you can use the correpsonding member functions to the messages that I told you about in the CEdit and CListBox classes to do the same thing.
Refer to msdn.mircosoft.com for more details.
|
|
|
|
|
so would i do this?
//m_lsFile is the CList control variable to the listbox
//m_sFile is the CString control to the textbox
int nIndex;
CString str;
m_lsFile.GetTextLen(nIndex);
m_lsFile.GetText(nIndex, str);
m_sFiles.SetWindowText(str);
str.Delete(nIndex);
If you could let me know that would be great.
Thanks again.
|
|
|
|
|
Thats right, except since you are using MFC and CStrings, you do not need to get the text length because the CString hides the memory allocation for you. You also do not need to delete the CString for the same reason.
CString str;
m_lsFile.GetText(nIndex, str);
m_sFiles.SetWindowText(str);
|
|
|
|
|
ok now this will sound real stupid but, i am bewildered here. i am the perfect picture of a newbie at c++, in an mfc project i want to hide and show controls, any button i place on a edit box, or listview are not visible... even if i place them on the dialog and move them, in vb we could right click and "Bring to Front", is there nothing close to that, or do i have to size and place the controls as i show them... thanks in advance
shotgun
|
|
|
|
|
I'm not sure what exactly you're after, but try 'Tab Order' command from 'Layout' menu.
Tomasz Sowinski -- http://www.shooltz.com ** If you're going to rape, pillage and burn, be sure to do things in that order. **
|
|
|
|
|
I beleive he is talking about ZOrdering of controls, and if there is any way to change this from the dialog editor.
--
David Wengier
Sonork ID: 100.14177 - Ch00k
|
|
|
|
|
It's obvious you're coming from VB camp, David
In Win32 API, z-order *is* 'tab order'.
Tomasz Sowinski -- http://www.shooltz.com ** If you're going to rape, pillage and burn, be sure to do things in that order. **
|
|
|
|
|
Tomasz Sowinski wrote:
It's obvious you're coming from VB camp, David
And proud of it
--
David Wengier
Sonork ID: 100.14177 - Ch00k
|
|
|
|
|
Absolutely.
Tomasz Sowinski -- http://www.shooltz.com ** If you're going to rape, pillage and burn, be sure to do things in that order. **
|
|
|
|
|
There the same thing...?
I thought zOrder was vertical or depth of the control.
Like layers or divs in DHTML...a high zOrder makes the layer a top level window.
Tab order was basically the order in which the controls were created?
Their is no difference...?
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Tab order determines the order in which controls are created. Created controls are inserted sequentially into child windows list of their parent. Order on this list is z-order.
Tomasz Sowinski -- http://www.shooltz.com ** If you're going to rape, pillage and burn, be sure to do things in that order. **
|
|
|
|
|
You may want to try the beginner tutorials for VC++. I've tried that and it helps ALOT. Try the Button Control....... (I am new too..)
|
|
|
|
|
You can experiment with the Transparent checkbox in the controls properties (Extended Styles tab)... not sure if thats what you want, but I think its the closest thing to 'Bring to Front'...
|
|
|
|