|
|
I have gone throught the websites given by u
fist of all thanks for it,
It obiviously a matter that QT is not free but
if i consifer Quality the topmost in my application
so dont matter to pay some money , if i am geting
a stabe and more relaible components .
Yet will have to do some study for comparison between
QT and wxWidget .
Get back to u with proper feedbacks.
Thank u
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Hi
How to delete all column headings and values from CListCtrl. I am doing in this way.
int nColumnCount = m_ListCtrl.GetHeaderCtrl()->GetItemCount();
// Delete all of the columns.
m_ListCtrl.DeleteAllItems();
for (int i=0;i < nColumnCount;i++)
{
m_ListCtrl.DeleteColumn(i);
}
Is it correct or not. when i again displaying values in this listcontrol it is not deleting column names but deleting values. what should i do.
Thanks in advance.
|
|
|
|
|
Try :
int nColumnCount = m_ListCtrl.GetHeaderCtrl()->GetItemCount();
m_ListCtrl.DeleteAllItems();
for (int i=0;i < nColumnCount;i++)
{
m_ListCtrl.DeleteColumn( 0 );
}
When you call DeleteColumn the header control is reindexing the columns everytime so always delete index 0 and you'll be ok.
Gavin Taylor
w: http://www.gavspace.com
|
|
|
|
|
int nColumnCount = m_ListCtrl.GetHeaderCtrl()->GetItemCount();
// Delete all of the columns.
m_ListCtrl.DeleteAllItems();
for (int i=0;i < nColumnCount;i++)
{
m_ListCtrl.DeleteColumn(0); // always delete first column
}
You delete all items with m_ListCtrl.DeleteAllItems() and only first column.
|
|
|
|
|
Hai,
actually i'm new to VC++,working as software developer in VB
i've an embedded program like this
subDVR378max187 (Accum%)
On Error Resume Next
Dim Q%
Accum% = 0
out 888, 1
out 888, 0
Q% = vbInp(189)
out 888, 2
out 888, 0
out 888, 2
If (Inp(889) And 32) > 0 Then Accum% = 2048
out 888, 0
out 888, 2
If (Inp(889) And 32) > 0 Then Accum% = Accum% + 1024
out 888, 0
out 888, 2
If (Inp(889) And 32) > 0 Then Accum% = Accum% + 512
out 888, 0
out 888, 2
If (Inp(889) And 32) > 0 Then Accum% = Accum% + 256
out 888, 0
out 888, 2
If (Inp(889) And 32) > 0 Then Accum% = Accum% + 128
out 888, 0
out 888, 2
If (Inp(889) And 32) > 0 Then Accum% = Accum% + 64
out 888, 0
out 888, 2
If (Inp(889) And 32) > 0 Then Accum% = Accum% + 32
out 888, 0
out 888, 2
If (Inp(889) And 32) > 0 Then Accum% = Accum% + 16
out 888, 0
out 888, 2
If (Inp(889) And 32) > 0 Then Accum% = Accum% + 8
out 888, 0
out 888, 2
If (Inp(889) And 32) > 0 Then Accum% = Accum% + 4
out 888, 0
out 888, 2
If (Inp(889) And 32) > 0 Then Accum% = Accum% + 2
out 888, 0
out 888, 2
If (Inp(889) And 32) > 0 Then Accum% = Accum% + 1
out 888, 2
out 888, 0
out 888, 2
out 888, 0
out 888, 1
end sub
this is a basic language routine for collecting 16 bit data when ADC connected through parallel port.what i need is how can i convert this program as a VC++ Dll? how can i link with vb6.0? plz help me soon friends,this is the only remaining thing is this project.
felix
|
|
|
|
|
I dont understand what u want to do ,
1> creating dll u need to go through simple exmples on code project for dll in
vc++
2> My experince say that if u r suppose to do OUT and IN port program then it
will confilict in versons of Windows .As 98 support but NT dont support XP
also dont support the use of key word OUT & IN as we use them in simple C.
3> Get the ioport32.dll that will help u get ur work (else i send u )
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Hi all,
I have images of different formats.On Selecting any one of these,
1) I want to see the preview of image(possibly in picture box).
2) i want to print the image on the click of button.
Please Guide how can i do that. A short code snippet will be highly appreciated.
Thanks in anticipation!
Regards,
Ankush Mehta
|
|
|
|
|
Hello.
Check out GDI+
There are lots of samples at MSDN.
Kakan
|
|
|
|
|
I had posted one problem on 1 december 7.48, for which you asked me to attach code.
I have attached the neccessory code in the same problem having date details as 1 december 7.48. Sorry for delay in posting neccessory details.
Regards,
Amol
|
|
|
|
|
hi folks,
I want to Plug new toolbutton into MSN TOOLBAR
how to plug it with 3 rdparty tool ,plse give some suggestions.....
(After signed with microsoft only)
Goodluck
Goodluck
|
|
|
|
|
I have an application that runs from the Task bar. This app is designed so that it can only be closed using the Task Manager (ie end process).
I have a small problem where the program icon remains in the task bar after I 'End Process'....This can be easily fixed by adding a Shell_NotifyIcon(NIM_DELETE,&IconData) in the destructor.
However, the destructor nor any of the other 'closing functions (Destroy etc) appear to be called when EndProcess using the Task manager is called.
Does anybody have any suggestion on how the Task Manager shuts down a program using End Process so that I can catch a message in order to delete this stray icon
Alan Buchanan
|
|
|
|
|
|
I can understand the reasoning behind this but would have thought that my destructors would still be called. How does 'End Process' clean up all my pointers that I create ?
I am still left with this irritating problem of the my program icon remaining in the system tray....A 'mouse over and it disappears. Is there any way to get rid of this ? I assume that it is some bug within Windows as I have seen it happen on other programs occasionally.
Thanks
Alan Buchanan
|
|
|
|
|
The point of TerminateProcess is that it doesn't execute any more code, it's designed as a last resort - ie, the process has stopped responding - not really for every day use to close your program. As far as windows cleaning up after itself, I know it does but don't ask me what type of magic it uses to do it.
Alan Buchanan wrote: I assume that it is some bug within Windows
Why's it a bug because your program isn't cleaning up after itself properly? The system tray doesn't automatically know when your program has closed so it cant remove the icon until the next time it tries to access it.
Why's it so important you cant provide a proper exit option in your app?
Gavin Taylor
w: http://www.gavspace.com
|
|
|
|
|
Thanks Gavin,
The program is installed at about 15 sites and the intention is for the program to run at all times. Its starts when the user logs on. In order to make it 'idiot-proof' I decided not to have an easy way to terminate the program (ie use Task Manager).
Its not really a bug but an irritation that I have noticed when I debug in the compiler more than from Task manager..The destructors aren't called when I close using the debugger either so I was curious to understand what was going on.
Anyway thanks for your help. I understand what is going on (I think) and have a solution if required (ie add an exit button.
Regards,
Alan Buchanan
|
|
|
|
|
Hallo.
Help me please.
I'd like to write a toolkit that would allow to work with fingerprint device. Such functions as getting the finger image from the device, matching with other, save in database atc.
I have a device and driver for it.
Maybe you can give some tips what to do for achieving this.
I've disassembled the driver's "*.dll"s and found functions that might be necessary, but I don't know how to work with them...
Paul Neyman
paulneyman@list.ru
|
|
|
|
|
Its very hard to tell form here, what you need. Bascially most devices comes with there own SDK, and sample programs on how to use it. You should look at the manual of your device or ask the company to help writing programs with their device.
http://www.priyank.in/
|
|
|
|
|
All SDK are not for free... I can't affor that preasure, I need to write it by myself.
|
|
|
|
|
Generally the hardware vendor in India provides it for free, else what will be the use of the hardware.
http://www.priyank.in/
|
|
|
|
|
Hello I French, am sorry for my English. I have create CStaticCtrl class (CStaticCtrl.cpp, CStaticCtrl.h) derive of CStatic. I have just add OnCtrlColor in this new class. This news class functions very well. Now i want add this new class in "Tools Control" in Visual studio 6. I want a button in "Tools control" for drawing this new CStaticCtrl same as CStatic in a dialog. But i don't now. And you ?
Thank
xDiamant
|
|
|
|
|
Hi xDiamant,
I don't think you can get a button for each and every new control you design. But there is the "Custom Control" button that will allow you to use any control you have created, in the resource editor.
This article should help:
Creating Custom Controls
squidev
|
|
|
|
|
Thank for link. For Add a tool control, i think use a ActiveX control (OCX). I search in the Net ....
Thank Bye
|
|
|
|
|
Hi, this is my first time posting in this forum.
I have written a program which solves Sudoku grids, using Visual C++, but it uses black MSDOS boxes.
I would like to make it look better using a windows32 application fashion, but I cant find the way to start from.
I want to learn how to open a file, show its content with the sudoku format and then show the result on screen. (I suppose the algorythms dont have to change, do they?)
When I open a file in my program I use ifstream file ("whatever.sdk")
When I print on the screen I use the well known "cout<<"whatever"<
|
|
|
|
|
Hi
How to set up a single event-handler function for the clicked event on all of the radio button controls.
I have 5 radio button . i would like to add single event handler for this all radio button.
Regards
Rajesh
rajesh
|
|
|
|