|
One of the constructors to the file dialog class permits you to specify a list of file extensions the dialog is permitted to show, check the documentation for more clarity, hope this helps.
The tears shed in vain
and the hatred and pain
will be nothing but dust
at the end of the day
|
|
|
|
|
Hi
We have implemented the functionality of "What's this" help button in our MFC code.
When select "What's this" help menu and press any control then help is displayed properly; but while click on the buttons of the toolbar, windows message
"Windows.hlp file is not found. Will you locate /specify the file by yourself" with Yes and No button appeared.
After some time message disappears automatically.
And We also do not found windows.hlp at our system.
We have facing this issue at windows 7 (KB917607 is applied) and at windows XP while trying to display the help message at same toolbar button help displayed successfully.
Thank You
Ashish Kumar verma
Software Engineer(VC++)
|
|
|
|
|
Software developer with 10 years experience in developing desktop applications using C/C++,VC++,Qt,OpenGL for CAD/CAM/CAE/CFD applications. Call Sujan @ +91-8420921887/+91-9163437906. skype: 'sujan.dasmahapatra' , email : 'appollosputnik@yahoo.com'
website : http://www.sujantechnologies.com/
|
|
|
|
|
hi,
I want to execute java exe by passing arguments in VC++ 2010.
I have tried shellExecute, but it is not working.
Can any one please help me.
Thanks in advance.
|
|
|
|
|
IICTECH wrote: but it is not working. Please do not expect people to guess what is happening on your system. Show the relevant portion of your code and explain what happens when you run it.
|
|
|
|
|
I want to integrate java with c++. I already created java exe called
IKRYSignENC.exe .
I have to pass command line arguments to execute this exe.
For that,I have used shellExecute as follows
ShellExecute (NULL, "open", "D:\\IKRYSignENC.exe", "D:\\NSRM3443\\Test\\ch21\\ENC_ROOT\\IN121MTM.000" "C:\\CASM_IKRYPT_JAVA\\Support\\Inputs\\CellKeys.txt" "D:\\", NULL, SW_SHOW);
It is compiling with out any errors, but while running it is giving the error like
Loaded
Unloaded
Can any one please suggest me the correct usage of shellExecute.
|
|
|
|
|
How did you create this .exe file? Java normally produces .class or .jar files.
|
|
|
|
|
I think there is a problem in the command line arguments you are passing to the executable in the ShellExecute Function. This should be one string something like:
"D:\\NSRM3443\\Test\\ch21\\ENC_ROOT\\IN121MTM.000 C:\\CASM_IKRYPT_JAVA\\Support\\Inputs\\CellKeys.txt D:\\"
You talk about Being HUMAN. I have it in my name
AnsHUMAN
|
|
|
|
|
How would you run IKRYSignENC.exe outside of code?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
Dear friends,
Am writing one application. am done with 60%.
rest is to read and write the data in excel/csv file.
Could you help me to how to write and read the excel/csv by cell by cell.?
|
|
|
|
|
You can look here[^], or, here[^], or, if you write me an email, I can send you a excel class, packed into demo VC6 project, which show you how to use this class ...
|
|
|
|
|
|
A csv file is nothing other than having values separated by a ,
So, in essence if you create a simple .txt file which contains values separated by a comma operator, the file should open quite happily in Excel.
Steps:
1. From your code create a file ABC.csv
2. Put values in the file as 1,2,3.... and so on
3. Save the file from your code.
4. Open excel and you should see the correct contents in the format you wished.
You talk about Being HUMAN. I have it in my name
AnsHUMAN
|
|
|
|
|
Can you help me convert the code VB6 below to VC++ 6.
'Code VB6 - Class
Private Declare Function CheckCode Lib "ArmAccess.DLL" (ByVal Name$, ByVal Code$) As Byte
'@@@@@@@@@@@@@@@@@@@@@@@@
Public Function checkRegCode(ByVal userName As String, ByVal RegistrationKey As String) As Integer
Dim rtn As Byte
rtn = CheckCode(userName, RegistrationKey)
If rtn <> 0 Then
checkRegCode = 1
Else
checkRegCode = 0
End If
End Function
|
|
|
|
|
Here's a rough draft:
#include <whatever_header_file_CheckCode_is_in>
int checkRegCode(...)
{
if (CheckCode(...) != 0)
return 1;
else
return 0;
}
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
modified 17-Feb-13 21:35pm.
|
|
|
|
|
I do apologise if this question is in the wrong place, I was split between html and c++, but since the code I'm referring to is c I chose here.
I downloaded a wrapper of winhttp from the site here at codeproject.
A Simple Windows HTTP Wrapper Using C++[^]
It works fantastically on the likes of google, or microsoft webpages but not on my own.
My page is simple
<html>
<body>
some text
</body>
</html>
but the code I linked just hangs in the console window.
Is there some sort of addition I need to add to the code or my page to have it respond correctly?
Appreciate any input.
(edit) sorry, all the code does is download the content of the page (source) so all I would be expecting to see in console window is "some text"
|
|
|
|
|
If the problem is specific to some code in an article, then you should try posting in the forum at the end of the article, so the author can help you.
|
|
|
|
|
|
I am not looking for “cool “ ready to run UI , but like to get some ideas from someone who done something similar to this.
I have a standard MFC document / view application using static Csplitter ( 6 views for now ) “embeded “ in standard CtabCtrl.
Like to be able to use the tabs to switch between splitter panes. So the UI would start in splitter mode first and then the user should be able to get full view of selected pane using tabs. I got as far as getting the correct pane / view but not sure how to get that info to “translate” to splitter pane column / row.
Any suggestions would be greatly appreciated.
Thanks for your time.
Cheers
Vaclav
|
|
|
|
|
// My first calculator//Abhi's calculator//
#include <iostream>
using namespace std;
float division (float a, float b)
{
float a1;
a1=a/b;
return (a1);
}
float multiplication (float c, float d)
{
int a2;
a2=c*d;
return (a2);
}
float addition(float e, float f)
{
int a3;
a3=e+f;
return(a3);
}
float subtraction(float g, float h)
{
int a4;
a4=g-h;
return(a4);
}
int main()
{
char user;
float ab;
float da;
float ans;
cout<<endl<<"welcome to="" abhi's="" calculator!"<<endl<<endl;
="" cout<<"(d)="Division(%)"<<endl;
" cout<<"(m)="Multiplication(*)"<<endl;
" cout<<"(a)="Addition(+)"<<endl;
" cout<<"(s)="Subtraction(-)"<<endl<<endl;
" cout<<"if="" you="" want="" division="" then="" press="" d="" or="" -="">"<<endl;
cout<<"if="" you="" want="" multiplication="" then="" press="" m="" or="" -="">"<<endl;
cout<<"if="" you="" want="" additionthen="" then="" press="" a="" or="" -="">"<<endl;
cout<<"if="" you="" want="" subtration="" then="" press="" s="" or="" -="">"<<endl<<endl;
cout<<"choose="" any="" one="" -="">"<<endl<<endl;
cin="">>user;
if (user == 'D' || user == 'd')
{
cout<<endl<<endl<<"what two="" numbers="" would="" you="" like="" to="" divide="" -="">"<<endl<<endl;
cout<<"enter="" 1st="" number="" -="">"<<endl;
cin="">>ab;
cout<<"Enter 2nd number ->"<<endl;
cin="">>da;
ans = division (ab,da);
cout<<"Answer is -> "<<ans;
}
="" if="" (user="=" 'm'="" ||="" user="=" 'm')
="" {
="" cout<<endl<<endl<<"what="" two="" numbers="" would="" you="" like="" to="" multiply="" -="">"<<endl<<endl;
cout<<"enter="" 1st="" number="" -="">"<<endl;
cin="">>ab;
cout<<"Enter 2nd number ->"<<endl;
cin="">>da;
ans = multiplication (ab,da);
cout<<"Answer is -> "<<ans;
}
="" if="" (user="=" 'a'="" ||="" user="=" 'a')
="" {
="" cout<<endl<<endl<<"what="" two="" numbers="" would="" you="" like="" to="" add="" -="">"<<endl<<endl;
cout<<"enter="" 1st="" number="" -="">"<<endl;
cin="">>ab;
cout<<"Enter 2nd number ->"<<endl;
cin="">>da;
ans = addition (ab,da);
cout<<"Answer is -> "<<ans;
}
="" if(user="=" 's'="" ||="" user="=" 's')
="" {
="" cout<<endl<<endl<<"what="" two="" numbers="" would="" you="" like="" to="" subtract="" -="">"<<endl<<endl;
cout<<"enter="" 1st="" number="" -="">"<<endl;
cin="">>ab;
cout<<"Enter 2nd number ->"<<endl;
cin="">>da;
ans = subtraction (ab,da);
cout<<"Answer is -> "<<ans;
}
="" cout<<endl<<"do="" you="" want="" to="" continue"<<endl<<endl;
="" {
="" char="" a;
="" cout<<"yes="" !="" -=""> press Y or y for yes"<<endl<<endl;
cout<<"no="" !="" -=""> press N or n for no"<<endl<<endl;
cin="">>a;
if(a=='y' || a=='Y')
{
main();
}
else if(a=='N' || a=='n')
{
cout<
|
|
|
|
|
what is this? why you post this code here?
|
|
|
|
|
What's the question?
If you want to share this calculator, then write a tip or an article:
Code Project Article FAQ[^]
In some cases, my signature will be longer than my message...
<em style="color:red"> <b>ProgramFOX</b></em> ProgramFOX
|
|
|
|
|
what's your question ?
warning ?
|
|
|
|
|
Hi all,
on higher resolution or large DPI the dialog box of my application is not fully visible.
i want to add the auto scroll option for higer resolution in my dialog box,so the dialog is accessible and fully visible.
pleae help me how can i do this thanks in advance.
|
|
|
|
|
Modify your dialog! You really need to provide some proper information if you expect a sensible response to this question. However, if you have a dialog that is too big for the screen you may need to rethink what you are using it for.
|
|
|
|