News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

linking with old setargv that does not expand wildcards?

Started by BillModlin, April 13, 2014, 12:16:13 PM

Previous topic - Next topic

BillModlin

I recently downloaded the Code::Blocks IDE and set out to write some command line utilities for personal use.

I'm running Windows 7 and coding in regular old C.

I wrote a program to fix line terminators and trim trailing blanks in text files, for example.

I implemented wild-card file searching in the program, then found that it was never executed and wasn't needed, that there is a new Setargv function that expands wildcards to separate argv's automatically.  Doh.  Oh well, it's been over 30 years since I did any real programming and I guess I should expect changes.  This seems convenient for most purposes, and allowed me to delete a few lines from my program.

However, the next thing I want to write needs to accept arguments including asterisks and question marks without having them expanded before I see them.  A little googling suggests that what I need is to link my program with an older less powerful setargv function.   

I have no idea at all how to tell Code::Blocks to do that.  Can someone point me in the right direction?

All this new-fangled IDE stuff is lovely when it does what you want it to, which seems to be the case much of the time.  But it can be bewildering to a fuzzy-headed old timer like me when I want to deviate from the defaults.  As of now, I have only the vaguest of ideas what a "project" really is, or what it means when it talks about "the current view" and suchlike. 

I can't seem to find any linking options.  And if I found them I'm not sure what to set them to.  Help? 





stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]