|
I'm afraid that you should have to buy it. I remember an older version of Crystal Reports was added to MS VC 4.0 CD for free.
|
|
|
|
|
A Workspace that runs perfectly on Windows XP at work, is producing an exception on XP Home (at home!!). It is in the InitInstance of the app attempting to execute ProcessShellCommand(CmdInfo). Its giving an exception (0XE06D7363). Have trawled the web - checked and double checked all my project setting, all to no avail. Am I being stupid and missing something obvious??????
|
|
|
|
|
Hey,
Me too facing the same problem... in ProcessShellCommand as u faced... did u get any soln on this .. plz let me know
regards
|
|
|
|
|
Hello,
I'm trying to create a menu (actually it is a modified toolbar) that looks like the IE or Mozilla menu bar.
I've read this article: http://www.codeproject.com/docking/sizablerebar.asp
Now I'm having problems in creating such a flat toolbar in WinXP using the WinAPI.
The final result should look like this:
http://user96.kundenserver9hsgbr.de/menu1.gif
And this is my current toolbar:
http://user96.kundenserver9hsgbr.de/menu2.gif
For the moment I am not interested in the background color (this comes from the rebar control I think)
I'm just interested in the hover effect which looks quite different. What should I change?
I'm using the TBSTYLE_FLAT style but I do no get the expected results.
|
|
|
|
|
Are you talking about hot tracking?
Check out the TB_SETHOTIMAGELIST message.
You need to use image lists for button images and create a list used for "hot" items.
|
|
|
|
|
Here is a program i need to do.. i would like some help..please contact me
here it is:
Write a program to read from an input file the salesperson’s id and their quarterly sales for the year. Compute the total yearly sales, avg sales and commission for each salesperson. You will also compute the company’s total sales. Create a report in this following tabular format:
-----------------Annual Sales Report ------------------
ID QT1 QT2 QT3 QT4 TOTAL AVG COMM
12345 $1,892.00 $4,000.00 $435.00 $1000.00 $7327.00 $1831.75 $2198.10
Total Sales for the Company: //(sum of all the salesperson’s yearly sales)
Requirements:
1. Read from the input file (salesperson_yrsales.dat) the salesperson’s record in the following format: Remember this file will contain several records.
salesperson’s ID#Qsales1#Qsales2#Qsales3#Qsales4
2. Create a structure with the following members.
Salesperson’s ID // salesperson ID number (int),
Qsales1 - // sales for quarter 1 (double)
Qsales2 - // sales for quarter 2 (double)
Qsales3 - // sales for quarter 3 (double)
Qsales4 - // sales for quarter 4 (double)
Yearly sales - // total sales for the year (double)
Avg sales - // the average sales for the year (double)
commission - // sales commission (double)
3. Compute the total yearly sales, average sales and commission amount (30%) for each salesperson.
4. Print a sales report as specified previously to display the sales information. Remember to use padright and padleft.
5. Use the following functions in your program:
a. readFile : This function reads the salesperson’s ID and quarterly sales from the input file and stores the information in the record structure.
b. totalSaleByPerson: This function computes each salesperson’s yearly sales amount,
c. avgSaleByPerson: This function computes each salesperson’s , average sales for the year.
d. commByPerson: This function computes each salesperson’s commission for the year.
e. totalSales: This function computes the company’s total sales by adding yearly sales amount from each salesperson.
f. printReport: This function prints the annual report in the specified format.
I would apreciate someone helping me.
|
|
|
|
|
diegomiami wrote:
i would like some help
Specifically, what kind of help? You'll likely get a useful response if you have a problem with a specific part of your code.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Im having problems loading the file..im not really sure whats the code for that.
|
|
|
|
|
Here's[^] a tutorial on reading a text file. It should get you started.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
There's more than one way to skin a cat. Are you supposed to use C streams (e.g., FILE*), STL streams (e.g., ifstream), MFC (e.g., CFile), or what?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
I want to disable the task manager for a user group or the entire machine. it don't work if I disable it with HKLM...
Cannot do it in the regedit under HKCU because it only disable the task manager for the current user not a user group.
Cant someone help me please
|
|
|
|
|
|
consider
char *buff[] = { "sec1",
"sec2",
"sec3",
"sec4",
"sec5"
};
I want to pass this to the client side from my COM server
Server side code
VARIANT msg ; <br />
char **buff ; <br />
buff = new char*[5];<br />
for(int i=0;i<5;i++){<br />
buff[i] = new char[32];<br />
memset(buff[i],0,32);<br />
char str[5];<br />
sprintf(str,"Sec%d",i);<br />
strcpy(buff[i],str);<br />
}<br />
SAFEARRAY sArray ;<br />
sArray.cDims=2 ; <br />
sArray.fFeatures=FADF_AUTO ;<br />
sArray.cbElements=1;<br />
sArray.cLocks=0;<br />
sArray.rgsabound[0].cElements=5;<br />
sArray.rgsabound[0].lLbound = 0;<br />
<br />
sArray.rgsabound[1].cElements=32;<br />
sArray.rgsabound[1].lLbound = 0;<br />
sArray.pvData=(void *)(buff);<br />
msg.parray=&sArray ;<br />
msg.vt=VT_ARRAY | VT_UI1;<br />
_bstr_t t("Dummy");<br />
dummy->Fire_ProjectEepromMsgEvent(t,msg);<br />
for(i=0;i<5;i++){<br />
delete [] buff[i];<br />
buff[i]=0;<br />
}<br />
delete [] buff ;
On the client side the handler has the following signature
static _ATL_FUNC_INFO MsgInfo = { CC_STDCALL, VT_EMPTY,2,{VT_BSTR,VT_VARIANT }<br />
<br />
HRESULT CClient::HandleMsgEvent(BSTR Name,VARIANT data )<br />
{<br />
SAFEARRAY *sa ;<br />
sa = data.parray;<br />
<br />
}
For some reason I am unable to get this value in the client .
Please help
Engineering is the effort !
|
|
|
|
|
the _CRTDbg macros can be used to view the contents of the heap.. in context of the current process... that is the heap used by our program... what if i want to view the contents of the heap of another executing process?
|
|
|
|
|
See if this article is of any help.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Hello everyone, plz help me with the following problems:
The environment is Windows.
I want to let my program stand behind an executing program in the hook chain, so my idea is like this:
-force that program, say A, to stop.
-start my program .
-start A again.
With that approach I need to solve the following sub problems:
1. How to stop an executing program ? I guess I have to create fake messages to send to the program, but I still don't know the specifics.
2. How to start the program again ? I guess I can keep the location of the exe file when I stopped it, then use that to launch it again.
Is there any better approach to do that ? or if you know the answers to the questions 1 or 2, plz let me know, I need help badly, thanks.
|
|
|
|
|
maitung wrote:
1. How to stop an executing program ?
Post a WM_CLOSE message to it.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Is there a way to copy a MFC Dialog from one project to another in Visual Studio7.1? I am trying to bring in two Dialogs from another project, cutting and pasting does not do it...
|
|
|
|
|
i use vc 6:
in target project, open rc file of source project, then copy the dialog - hope it works in vc 7.
includeh10
|
|
|
|
|
Unfortunately, that does not work
|
|
|
|
|
did you close source project?
you do not need to open source project - copying is done only by target project - from rc file to target
includeh10
|
|
|
|
|
Close both the source and destination projects, then in a VS instance with no open project, open both the projects' *.rc files. You can then cut and paste correctly.
|
|
|
|
|
Thanks Larry, it works....
|
|
|
|
|
Hi,
I have this strange bug in my Visual Studio 6.0:
While editting, I cannot see the information regarding MFC objects. i.e. parameter info and complete word options don't work for Visual/MFC object (CString for example) and also I the member function data (return value and args) are not being displayed.
All of this works fine when refering to classes and objects which I wrote.
So to conclude it the problem is with displaying information of built-in classes.
I tried to reinstall Visual Studio and MSDN, but the problem was not solved, and this thing didn't happened to me with the same application and the same installation of VS and MSDN on other computer ... can it be something to do with my computer or the programs which are installed on it?
please help me out here.
thanks,
yaron.
|
|
|
|
|
Try this: Close VC, delete your project's .ncb file, and reopen the workspace. Deleting the .ncb file often fixes many IntelliSense problems.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ
Strange things are afoot at the U+004B U+20DD
|
|
|
|