Re: Rubbish
"Thats wrong Spod."
C++ is a Write Only Language or, you may prefer, Write once run at your own risk.
Stick with Java. You know it makes sense.
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Reply to: C++ Winmain commandline arguments?
Collapse
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
- You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
- You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
- If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logging in...
Previously on "C++ Winmain commandline arguments?"
Collapse
-
Guest replied
-
Guest repliedRenolds
Horses for courses tulipe for Brains!
Leave a comment:
-
Guest repliedRubbish
Thats wrong Spod.
The constructor :
INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow )
provides the answer - "lpCmdLine" is the variable.
you are the arse. now get back to your drag and drop software my friend.
Leave a comment:
-
Guest repliedAnd another way is...
// initialize MFC and print and error on failure
if (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0))
{
// TODO: change error code to suit your needs
cerr << _T("Fatal Error: MFC initialization failed" << endl;
nRetCode = 1;
}
else
{
// your code here
}
As for ripping into me re: Java I wouldn't touch that tulipe with a bargepole!
Spod - In "Learn a real language" mode!
Leave a comment:
-
Guest repliedcommand line args answer..
in the main method:
INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow )
LPSTR lpCmdLine represents the whole command line argument in bytes.
Leave a comment:
-
Guest repliedre
and another thing supremespud, i'm posting on here so search engines will parse it and it will help others learn (ala experts-exchange.com). again ss, thanks for your very helpful answer.
Leave a comment:
-
Guest repliedre
dimprawn as i said
"you post something on here about Java and <i'll> rip the pi.ss likewise. "
i am an expert in Java - which is up to date and better than C#. i want to learn more C++ because of hacking reasons - modern languages are too safe.
Leave a comment:
-
Guest repliedReynolds,
Writing C++ Windows apps is back in the dark ages.
Get yourself into C# and .Net and knock up these things in minutes, not weeks/months.
Join the 21st century mate.
Or alternatively outsource the whole dev to India for a fiver.
Leave a comment:
-
Guest replied@#%$ you
sorry i ain't got my head up bill gate's up arse you knob.
and your answer is...? its alright slagging off when you haven't got the answer.
SS, you post something on here about Java and rip the pi.ss likewise.
Leave a comment:
-
Guest repliedWhat a TWAT!
Have you never written a windows C++ program before?
You've done nothing but post for help, I hope you're not getting paid for this tulipe!
Try MSDN!
Leave a comment:
-
Guest started a topic C++ Winmain commandline arguments?C++ Winmain commandline arguments?
I have an W32 application that runs through Winmain. How do I pass command line arguments straight into the program? I can do it with int main(int arg...) but Winmain won't. Do I need a constructor?Tags: None
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Is an unpaid umbrella company required to pay contractors? Yesterday 09:28
- The truth of umbrella company regulation is being misconstrued Nov 25 09:23
- Labour’s plan to regulate umbrella companies: a closer look Nov 21 09:24
- When HMRC misses an FTT deadline but still wins another CJRS case Nov 20 09:20
- How 15% employer NICs will sting the umbrella company market Nov 19 09:16
- Contracting Awards 2024 hails 19 firms as best of the best Nov 18 09:13
- How to answer at interview, ‘What’s your greatest weakness?’ Nov 14 09:59
- Business Asset Disposal Relief changes in April 2025: Q&A Nov 13 09:37
- How debt transfer rules will hit umbrella companies in 2026 Nov 12 09:28
- IT contractor demand floundering despite Autumn Budget 2024 Nov 11 09:30
Leave a comment: