|
T.RATHA KRISHNAN wrote: How to resolve the error?
wait, you're compiling your project in debug mode, aren't you ?
compile in release mode, and see if it's better. The Release Mode should be linked to dtUtil.dll (not dtUtild.dll).
|
|
|
|
|
clean the output directory and recompile the full project .
Vikas Amin
My First Article on CP" Virtual Serial Port "[^]
modified on Thursday, July 24, 2008 5:33 PM
|
|
|
|
|
Dear All,
My project requirement is MFC application need to create setup package.I have created the setup package using Inno setup. Im using filters and equipment driver in my applicaion. so i need to connect filter(.bat file) and install that driver then only setup.exe should execute. How to use .bat file and install the driver in .iss file.
Plz helpme.....
It will be much helpful to me to give some advice on this..
Thank you very much,
Regards
Anitha
|
|
|
|
|
|
try this
[Files]
Source: "C:\Dir\InstallDriver.bat"
[Run]
Filename: "{app}\InstallDriver.bat"; Parameters: "/WHATEVER_PARAMS_YOU_NEED"; StatusMsg: "Installing driver..."
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Hi sashoalm,
I got the output.Thanks a lot....
Regards,
Anitha
|
|
|
|
|
Hi,
I want to install a driver file in setup package using Inno setup.
I tried the following code:
[Files]
Source: "C:\Program Files\Inno Setup 5\xx.sys"; DestDir: "{app}"
Source: "C:\Program Files\Inno Setup 5\xx.inf"; DestDir: "{app}"
[Run]
Filename: "{sys}\rundll32.exe"; Parameters: "setupapi,InstallHinfSection DefaultInstall 132 C:\Program Files\Inno Setup 5\P100.inf"; WorkingDir: {app}; Flags: 32bit;
but it doesn't install of my drivers.
help me...
Regards,
Anitha
|
|
|
|
|
AnithaSubramani wrote: [Run]
Filename: "{sys}\rundll32.exe"; Parameters: "setupapi,InstallHinfSection DefaultInstall 132 C:\Program Files\Inno Setup 5\P100.inf"; WorkingDir: {app}; Flags: 32bit;
I thought you were trying to execute a bat file.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Hi all
How can i know Capacity of USB Device?I want to know USB is Capacity (2gb or 3gb).Plz help me..
Thx's in advance
|
|
|
|
|
Did you try GetDiskFreeSpaceEx() ?
|
|
|
|
|
Hi,
I want to show the progress bar as animation. Can any one give me an example to show how to use CAnimationCtrl
Thanks
|
|
|
|
|
this is the easiest control ever use,
just add an animate control on a dialog box,
add a variable of type CAnimateCtrl.
in the OnInitDialog() function call the function Open() and Play().
remember to call function Close() in ua dlg box's OnClose() function or onDestroy()
like this.
//////////////////////////
m_ctlMyAnimation.Open(_T("C:\\Windows\System32\\migwiz\\progress.avi"));
m_ctlMyAnimation.Play();
////////////////////////
remember that this avi shud be some of those simple animation files, not music video or moviz, a good example is that microsoft dog that shows up when yu are searching.
::OnButtonStop()
{
m_ctlMyAnimation.Stop();
}
::OnClose()
{
m_ctlMyAnimation.Close();
}
|
|
|
|
|
Hi,
I have used the following code
m_avi.Open(IDR_AVI1);
m_avi.Play(0,-1,-1);
but its giving debug assert at open function
whats the problem
|
|
|
|
|
Dhiraj kumar Saini wrote: whats the problem
Find out for yourself what the problem is - use the debugger to find out what assert is being called.
Alternatively, put a break point in your code and use the Step Into debug option to follow through the MFC code.
Have you tried having the avi as a file, and using Open ("myfile.avi")? Does that work?
I suspect you'll either not have the avi properly embedded as a resource, or IDR_AVI1 means different things in different places (it is only defined in resource.h?), or maybe as the wrong resource type.
Good luck,
Iain.
|
|
|
|
|
how/where is IDR_AVI1 defined? Does it contain a valid path for the AVI File
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
The problem is resolved but now i am having a new problem
I having a CMainDlg class for Parent dialog on which i am painting CVisitorDlg as a child dialog.
I have used CAnimateCtrl in CMainDlg which I want to show when a user clicks a button on CMainDlg. But during clicking this button the CVisitorDlg dialog (Child Dialog is being repainted as it is fetching data from server. But the CAnimateCtrl is showing the animated images after the child dialog is repainted and not during fetching the data.
Please tell what to do.
|
|
|
|
|
Dhiraj kumar Saini wrote:
Please tell what to do.
1/ Go on, tell us the solution! I'd like to know if one of my 4 guesses was right.
2/ If it is a new problem, then post a new question - you'll get more people reading it.
Iain.
|
|
|
|
|
And the reason for the problem getting resolved was....?
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Actually the avi file was corrupt
|
|
|
|
|
are you doing all this in your main thread, then in this case it would get blocked in the process of receiving the data from the server. you should create another thread and implement some notification method to inform the UI that the data download is completed.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Yes I am doing it in the main thread. Can u tell how to make a new thread so that it works fine
|
|
|
|
|
Here[^] is an excellent article that I suggest you read. Threads can't be explained in three lines, this is a very deep subject.
|
|
|
|
|
Example[^]
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Is there any way?
My application needs to generate a graphic that fit the paper for printing.
(DPIs of printers might varify.)
system
modified on Friday, September 5, 2008 4:53 AM
|
|
|
|
|
hi, you need a to use a standard unit to define the size of ua graphic other than using pixels e.g inches, coz if you use pixels , each printer will come with different aspect ratios of the pixel units, and you cud have a printer whose one inch long on paper , is say 100 pixels while on the screen of your computer it could have been 150 pixels making an inch of your image so you end up having a different image on paper .
this is what i advise you to do. and i give an example of making some cells and they'll print same way thy appear on screean
define 2 variables in the header file of your view call them,
int m_nCellWidth and m_nCellHeight;
Inside the Draw function of your view
put this code.
m_nCellWidth = pDC->GetDeviceCaps(LOGPIXELSX);
m_nCellHeight = pDC->GetDeviceCaps(LOGPIXELSY)/4;
what does this function do before assingning some values in your integers.
the Function GetDeviceCaps(PARAMS) is a member of pDC (screen or printer) and it returns (depending on parameters) the number of pixels of the Devise context that make up one inch of y-axis (if PARAMS are LOGPIXELSY) or x - axis (if PARAMS are LOGPIXELSX);
now you have a unit that is equivalent to a quarter of an inch on y axis (vertical axis) of any printer m_nCellHeight and another m_nCellWidth representing a an inch on x-axis.
it's not a must you divide by 4, to make a quarter inch unit for y-axis, you can still use a full inch, it's olnly that the example i want to give you requires a quarter of an inch unit.
now put this code.
//////////////////////////////////////
int nMyPageHeight = (20 * m_nCellHeight ); // about 20 cells
int nMyPageWidth = (5* m_nCellWidth); // about 5 columns
for (int i=0; i <nmypageheight i="" mode="hold">{
// draw horizantal lines from left to right
pDC->MoveTo(0,i * m_nCellHeight);
pDC->LineTo(nMyPageWidth ,i * m_nCellHeight);
}
for (int j=0; j <nmypagewidth j="" mode="hold">{
// draw vertical lines top of page to bottom
pDC->MoveTo(j *m_nCellWidth ,0);
pDC->LineTo(j *m_nCellWidth ,nMyPageHeight);
}
////////////////////////////////////////////////////
now try to print your image and see what happens.
note that the print function calls the OnDraw() function of the view class and passes pDC, pointer to the printer, so if you call this code in another function other than the draw, make sure you call the Function from the OnDraw() function and pass pDC to it, dont use CClientDC(),
|
|
|
|