User Profile

Collapse

Profile Sidebar

Collapse
Lloydm
Lloydm
Last Activity: Sep 22 '07, 07:48 PM
Joined: Feb 13 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Lloydm
    replied to System calls
    in C
    Please see my post for answer. Hope it helps..
    See more | Go to post

    Leave a comment:


  • Lloydm
    replied to Call VB script using c++ program
    in C
    OK, I wanna say thanks a million. program is working.
    To all here's sample code


    #include<iostre am>
    using namespace::std;

    string answer="1";

    int main(){
    do{
    cout<<"\n\n Press 1 to browse the internet?: ";
    cin >>answer;

    if(answer == "1"){
    ...
    See more | Go to post

    Leave a comment:


  • Lloydm
    replied to Call VB script using c++ program
    in C
    Still searchine... Anyone?
    See more | Go to post

    Leave a comment:


  • Lloydm
    replied to Call VB script using c++ program
    in C
    Thanks for replying but no, I have not looked into it. Any resources you have or may know of would be a plus to increase my knowledge? pLease share. Thanks in advance...
    See more | Go to post

    Leave a comment:


  • Lloydm
    started a topic Call VB script using c++ program
    in C

    Call VB script using c++ program

    Hi all,

    I have googled and used about every search enginge I know of but came up with no results for this. I created a small C++ program to call a vbscript on a remote pc as well as write/append to a log file on local machine. Everything works fine except for me not having any code/syntax to call vbscript. If someone could lead me to a resource or reply if they have done it before, I would sincerely appreciate. Thanks to all in ad...
    See more | Go to post

  • Lloydm
    replied to USING pause in C++ program
    in C
    Ok, Thanks for your feedback, however I tried the following code but got error which I pasted below

    Code:
    else{
                         if(mnuSelect.length> 0) {
                                cout<<error msg";
                         }
                         system("pause");
          }
    ERROR
    line # c:\test.cpp
    invalid operands `{unknown type}' and `int' to binary...
    See more | Go to post
    Last edited by AdrianH; Apr 30 '07, 02:23 AM. Reason: Added [code][/code] tags

    Leave a comment:


  • Lloydm
    replied to USING pause in C++ program
    in C
    The expected user input should be 1 char. You may have a user enter say Bspace C which of course is incorrect. mmmm. Am I going about the wrong way of using string instead of char[ ]? Isn't string to show entire input entered vs char?...
    See more | Go to post

    Leave a comment:


  • Lloydm
    replied to USING pause in C++ program
    in C
    Thanks guys, wasn't able to get it going with istream::getlin e() but system("pause") ; works as well as getchar() works quite fine. However just testing a bit further, entering two or more input with spaces will have me press enter for each as error


    ex

    string mnuSelect=" ";

    cout<<"\n Enter menu selection (A, B, C, D, or E to EXIT): ";
    cin >>mnuSelect;...
    See more | Go to post

    Leave a comment:


  • Lloydm
    started a topic USING pause in C++ program
    in C

    USING pause in C++ program

    I've used the command "pause" in batch files which works ok but I guess it's applied dirrently in c++.
    Using Dev C++ 4.0 and the following is my code

    Code:
    #include<iostream>
    #include<iomanip>
    #include<cstdlib>
    #include<string>
    
    main(){
    
    
    	do{
    		display menu
    		cin>>getInput
    		if{
    	
    		}
    		else if{
    ...
    See more | Go to post
    Last edited by AdrianH; Apr 22 '07, 12:59 PM. Reason: Added code tags

  • Lloydm
    started a topic Windows Process Watcher and C++
    in C

    Windows Process Watcher and C++

    Hi all. The cisco vpn software has a built in "applicatio n launcher" function which I cannot get to work. As a work around I created a batch file which calls a vb script doing the job perfectly! I intend to go a bit further to automate this process and wondering if someone could guide me in the right direction or inform me of resources explaining windows processes and c++. I'm coding using DEV-C++ program which builds win32 apps/consoles....
    See more | Go to post

  • Lloydm
    started a topic Installing JDK 1.6 for BlueJ
    in Java

    Installing JDK 1.6 for BlueJ

    once again.. hello to all

    I have installed BlueJ on my pc but I can't run it. I dumped the JDK 1.6 .jar file in same folder as blueJ but it's not detected or perhaps I'm doing it wrong. The readme file says

    "This file is a self-extracting JAR. To install this JAR you must
    run the command "java -jar jdk-6u2-ea-src-b01-jrl-29_mar_2007.jar " and accept the click-though license. "

    ...
    See more | Go to post

  • Lloydm
    replied to Map/Add a printer in .bat file
    AHA! Found it

    Code:
    REM Add printer
    echo Installing [printer name] on [servername]!
    RunDll32.EXE printui.dll,PrintUIEntry /in /n \\server\printer
    
    echo Your default printer is [printername] on [server]
    REM Set Default Printer 
    RunDll32.EXE printui.dll,PrintUIEntry /y /n \\server\printer
    outputs a file name printers, but used del command @ end of script to delete that file. The file as well...
    See more | Go to post
    Last edited by Killer42; Apr 14 '07, 03:51 AM. Reason: Added CODE tags

    Leave a comment:


  • Lloydm
    started a topic Map/Add a printer in .bat file

    Map/Add a printer in .bat file

    I am able to map shares/network drives using a bat file but not able to map printers

    ADD SHARES
    net use [drive letter]: \\server\share

    ADD PRINTER
    net use \\server\printe r

    The script shows command completed successfully when executed but I don't see the printers in XP printers and faxes. What am I doing wrong?

    Thanks to all for replies
    See more | Go to post

  • u can find a sample of the time sheet on my storage space
    here's the link

    http://www.box.net/public/q270apbnxg#main
    See more | Go to post

    Leave a comment:


  • yes, sorry for getting back to u this late
    See more | Go to post

    Leave a comment:


  • VBcode, send worksheet to printer before Excel exit

    I built a timesheet and finally got all my functions working.
    Iv'e searched through the vb forum but had no luck finding a "print job" script. After saving file and before exit, I would like a script to prompt before exiting Excel to send the job to a printer. If user selects yes then print dialog window shows to select printer, if not do nothing and exit excel. Thanks to all, await a reply
    See more | Go to post

  • I did but had no luck, I also found the following in excel help...

    Formula Description (Result)
    =SUM(A2:A5) Total hours worked when the total is less than a day (17:20)

    =SUM(A2:A6)*24 Total hours worked when the total is greater than a day (25.33333).

    I got my total hrs with equation.... =SUM(sun:mon)*2 4/24
    thanks for your help. I DEEPLY & GREATLY APPRECIATE THIS
    =============== =============== =============== ==...
    See more | Go to post

    Leave a comment:


  • Here is what I've summarized.

    1hr = 1/24 = 0.4166667 or rounded 0.417
    1min = 1/24 x 60 = 0.000694
    1sec = 1/24 x 60 x 60 = 0.00001157


    Thus total hrs for any workday =8/24 as decimal = 0.333333333 rounded to 0.33

    Total hrs for mon-fri would be 0.333333333 x 5 = 1.666666667
    So we conclude total hrs (40) for mon-fri = 1.666666667 as serial or ie decimal
    To convert a serial...
    See more | Go to post

    Leave a comment:


  • Thanks for your reply, I included no calculation -1 for lunch time I simply calculated total hrs for workday as end time - start time

    Day---------Time In--------Time Out----Time In----Time Out------Total Hrs
    mon--------- 9:00-----------13:00-----------14:00------17:00-----------8:00

    seems as if when total work week hrs = 24:00 it resets itself to 0:00 resulting in 16:00 for work week...
    See more | Go to post

    Leave a comment:


  • I tried doing it but no luck. Seems as if whenever the total hrs = 24:00 it resets to 0:00 resulting in 16:00 total work week hrs [ my formula -> =SUM(F4:F8) ]

    Total Hrs
    8:00
    8:00
    8:00
    8:00
    8:00
    ----------
    16:00...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...