|
UNC paths are comprised as \\servername\\sharename\directory\directory\filename
So, it looks like you forgot the include the sharename of the drive you need to access. For instance, I've shared my C: drive as C, so I'd do something like \\joel\c\windows\notepad.exe
Joel Lucsy
|
|
|
|
|
This is what I need but have no idea where to start. please help I am a real newbie to this stuff.
Create a base class-of type Tree that
you can plant, (think construct)
you can grow by age. 1,2,3 etc.
Create a derived class-Fruit-that will allow me to
grow 2 apples on my tree when age 2
grow 2 oranges on my tree when age 3
pick my fruit
design client code that will let the client plant, a tree and input ages to the tree-age begins at zero and apple and orange count is zero.
When age(input by client)is two, have two apples that clieck pick(apple count goes from two to zero)
When age(input by client)is three, have two oranges that clint picks(organge count goes from two to zero)
files should be
tree.cpp (base class)
tree.h
fruit.cpp(derived class)
fruit.h
farmer.cpp(client code)
I have to be able to run the code, test the code, print the code no file IO, just keyboard IO.
Need this really bad..........have no Idea please help!!
Alan A. Decker
|
|
|
|
|
Homework, by any chance?
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
Is there any sample C program implementing Progress Bar using WinAPI but without using class?
Thanks for kind help.
wave
coolcool883@hotmail.com
|
|
|
|
|
Firstly, you just add a progress bar control into your dialog resource, then using
LRESULT SendMessage(<br />
HWND hWnd,
UINT Msg,
WPARAM wParam,
LPARAM lParam
);
you can set all the parameters of the control after getting its handle using GetDlgItem() .
For e.g.
<br />
HWND hProg = GetDlgItem(hDlg, IDC_MYPROGBAR);<br />
SendMessage(hProg, PBM_SETRANGE32, 0, 100);
will set the range of the control from 0 to 100. For all messages, this is the link to progress bar control messages in the MSDN
http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/progbar/reflist.asp?frame=true
|
|
|
|
|
Hello everybody,
This might sound like a stupid question, but I can't find anything. Do you guys know how I can compile a Visual C++ application in the command-line? Is there any place on the web where I can find information about that? Any answer is more than welcome.
Best regards,
Luis E. Cuadrado
)
|
|
|
|
|
Check the .plg file in your project's directory.
rechi
|
|
|
|
|
Having Visual C++ dsp file you can build it by such way:
msdev MyProject.dsp /MAKE "MyProject - Win32 Debug"
Replace MyProject with your project name. Change Debug to Release if necessary. Try to play with parameters, I think adding parameter ALL makes Rebuild All.
|
|
|
|
|
Hello,
Just what I need. I tried and it works.
Thank you very much for you help.
Best regards,
Luis E. Cuadrado
)
|
|
|
|
|
How can u do this in .NET enterprise developer edition??
|
|
|
|
|
If I try and create a a CInternetSession object I need to specify my proxy name. When I then call GetHttpConnection() on the session object, I have to specify a username and password to authenticate with my proxy server. Unfortunately, my proxy server also requires a domain name. Anyone know how to do this?
I did think the following format would work but it doesn't:
username = mydomain\myusername
password = mypassword
"The folly of man is that he dreams of what he can never achieve rather than dream of what he can."
"If you think education is expensive, try ignorance."
|
|
|
|
|
Did you ever get an answer to your question? I'm trying to use CInternetSession going through a proxy, but I'm getting 404 - file not found errors. The part I can't figure out is where/when do I tell the proxy server my username and password. When I browse with IE, the browser pops up a user/password dialog as soon as I try to access a page on the internet. When I use the CInternetSession constructor I specify the proxy server, but where do I specify proxy user and password. Is the constructor supposed to pop up the dialog automatically?
Thanks for any help.
|
|
|
|
|
Try this:
http://homepage.ntlworld.com/phykell/Software/GetResponse.cpp
It's Win32 rather than MFC but it may help you.
Where you need to specify the domain of the user, simply set the username option as follows:
domain\username
HTH
|
|
|
|
|
I need test printer status in my program. (Specialy HP LJ 1200). Testing MSDN topic "HOWTO: Get the Status of a Printer and a Print Job" I ewerytimes get status 0 - printer redy. This is not function for me (or I have an error in it).
Now is HP offering utility "Printer Status/Alerts and Internet enabled supplies ordering for Direct Connect" lj1116en.exe whitch can read printer status, alert me when is printer open, or out of paper, but I need to do in my aplication!
I try find any API or example but no sucesfull.
Can anybody help me?
Thank Mol
|
|
|
|
|
The spooler only knows of the existence of an error when one or more jobs are in the queue.
Try the MS code when a job has failed.
If you want an alert when a printer job fails you need to isntall a FindFirstPrinterChangeNotification/WaitForSingleObject/FindNextPrinterChangeNotification loop as per the examples on http://www.merrioncomputing.com/Programming/index.htm
'--8<------------------------
Ex. Datis:
Duncan Jones
http://www.merrioncomputing.com
|
|
|
|
|
I try PrintWatchServer.exe and Project1.exe and catch no error. You see it to work?
|
|
|
|
|
API assume suport of printer driver, but printers drivers are writen without this suport (becouse LPT was only output port). LJ 1200 has some it support! Original HP program works! Is question if it support for API (improbable) or has own API (as some industrial Epson). On HP pages no informations about it. Where find help?
|
|
|
|
|
The API calls used are provided by the spooler (typically winspool.drv, provided by Microsoft) and not the printer driver. Therefore any printer which has spooling set up - which is usual - should respond to the FindFirstPrinterChangeNotification/FindnextPrinterChgangeNotification system.
If you open the printer from control panel do you see a list of jobs and their status? This is done with these same API calls.
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
Hello,
I'm stucked with my program's memory leaks... (I can't find, after searching intensively for them, why/where there is still one leak (well, one at least))...
I was wondering which one of the tools that are intended to find out those leaks should I use.
Thank you in advance for your advice...
|
|
|
|
|
BoundsChecker - pretty good for catching most of the errors, but have problem with COM servers in instrumented builds (generates memory exceptions).
Rational Purify - very good, but might significantly slow down the program.
|
|
|
|
|
Hello,
first of all let me thank you for your answer...
QUESTION1:
AlexO wrote:
Rational Purify - very good, but might significantly slow down the program.
It will only slow down my program when my program will be compiled/linked and the Rational Purify program will be running, isn't it?
NOTE:
I've not seen that program, I've just installed the demo version of the BoundsChecker program and I've been able to see that I can start/stop the BoundsCehecker working... then my question is: can I enable/disbale the rational purify work?
Thank you in advance...
QUESTION2:
From your point of view Rational Purify would be a better tool than BoundsChecker?
Thank you in advance.
|
|
|
|
|
The best tool I know of is Purify - though I haven't tried the latest (at USD $750).
|
|
|
|
|
$750!
I will have to work hard to convince the company manager...
Could you explain (summarizing) why do you believe that Purify is the best one?
Thank you in advance.
|
|
|
|
|
Hi,
I need to have a database replicated in several laptops, where they are going to work without connection... What they want to do is to synchronize the database each X days ( glups )
I thought that... ok... this thing is always bad, but at least I could use GUIDS for the primary keys of each record in order to avoid collisions, it's that a good idea ? How this affect to the performance of the database ?
Thanks in advance, greetings
Braulio
|
|
|
|
|
I always use a UUID for my primary keys, either generated by the SQL @Identity value; Or on Oracle/ Access I use UuidToString to generate me a UUID.
I've never seen it affect the performance of the database.
Michael
He who knows when he can fight and when he cannot will be victorious - Sun Tzu (The Art of War)
|
|
|
|