Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
V

Vivek Narayanan

@Vivek Narayanan
About
Posts
30
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • floating point error in C++
    V Vivek Narayanan

    i tried that,it didn't solve the problem,it works in the emulator DOSBOX but not on the real DOS platform,could this be some sort of memory problem?

    C / C++ / MFC help c++ security

  • floating point error in C++
    V Vivek Narayanan

    sorry about that,here is where i think the problem is

    cout<<"Enter input filename : ";
    	gets(ifname);
    	fflush(stdin);
    	cout<<"\\n";
    	int i;
    
    	ifstream infile("");
    	ofstream outfile("");
    	   infile.open(ifname);
    
    
    
    	cout<<"Enter output filename : ";gets(ofname);fflush(stdin);
    	cout<<"\\n";
    
    
    
    
    
    
    
    	   outfile.open(ofname);
    

    second place ---------------

    cout<<"Enter key: ";

                                for(i=0;;i++)
                                {
    
    
                                        Key\[i\]=getch();
    
    
    			    if (Key\[i\] == '\\r')
    				break;
    	       cout<<"\*";
                                    }
                                Key\[i\] = '\\0';
    
    
    		    int token= strtoken(Key);
    		    int token2= strtoken2(Key);
    
    		  fflush(stdin);
    		      cout<<"\\n";
    
    			     while (infile) {
    
    			      while(infile){
    
    				infile.get(ch);
    				if(!infile){
    				  cout<<"\\nThe file was successfully encrypted.";
    				  getch();
    				  goto end;
    				  }
    
    				ch=char((ch+token-(token2))%255);
    
    				outfile.put(ch);
    				   }
    				   }
    
    C / C++ / MFC help c++ security

  • floating point error in C++
    V Vivek Narayanan

    I wrote this code for a school project,since i use vista and dos doesn't work properly on it ,i normally use the emulator DOSBOX.The problem is this program runs well on DOSBOX but not on the normal DOS platform. It gives an error Floating point error:domain Abnormal program termination Here's the code,its on text file encryption.My school requires me to use the ancient "turbo c++ 3.0"

    #include
    #include
    #include
    #include
    #include

    int strtoken(char k[]) {
    int N = strlen(k);
    int sum = 0 ;

            for (int q=0;q\>choice;
    

    if(choice==3) {
    clrscr();

    cout<<" Instructions \n ------------- \n\n\n 1.Choose whether to encrypt or decrypt a file ";
    cout<<"\n 2.Enter the input and output filenames (if the file is in same directory as texcrypt ,if not,then enter the full path of the file)";
    cout<<"\n 3.Enter the key to encrypt/decrypt the file with(your file will be encrypted on the basis of the key entered).";
    cout<<"\n 4.The output file will be your encrypted/decrypted file";
    cout<<"\n\n\n\nPress any key to return ...... ";

    getch();

    goto start;

    }

    else if(choice==4)
    return 0;
    char text[3][20] = {"","encrypted","decrypted"};

    clrscr();
    	cout<<"Enter input filename : ";
    	gets(ifname);
    	fflush(stdin);
    	cout<<"\\n";
    	int i;
    
    	ifstream infile("");
    	ofstream outfile("");
    	   infile.open(ifname);
    
    	if(!infile) {          // if file is not found
    	cout<<"Error:File not found";
    	goto end;
    	}
    
    	cout<<"Enter output filename : ";g
    
    C / C++ / MFC help c++ security

  • Tracking an external process
    V Vivek Narayanan

    whats the code to check whether an external process has exited or not.The external process was indirectly,i stress that again,INDIRECTLY,started by my vb.net program, Thanks in Advance, Vivek

    Visual Basic csharp

  • Implementing BHOs in VB.NET
    V Vivek Narayanan

    Whats the code to implement a BHO in VB.NET , I have the dll of the bho,and i tried this code,which returned a null reference exception,

    imports something

    public abc as something.IObjectWithSite

    .........

    // In Form Load Event
    abc.setSite(AxWebBrowser1)
    // the above line caused a null reference exception

    Please help me out.

    Visual Basic csharp help

  • will IE plugins which are already installed work in shDOCvw.dll 's webbrowser
    V Vivek Narayanan

    Say if an addon is already installed , and i use a webbrowser component from either ieframe.dll or shdocvw.dll . Will the plugins work when the app is executed,or do i have to write some code to integrate the plugin?If I have to,whats the code?

    Visual Basic question

  • Adding ActiveX IE plugins to WebBrowser Control
    V Vivek Narayanan

    How do i add an activex control(say,i have the dll file of the plugin) into a .NET 2.0 Webbrowser (again i repeat its the .NET 2.0 one ,not the SHDocVw.dll one) . Please help . Regards, Vivek

    Visual Basic csharp com help question

  • Some Sardar Jokes.... [modified]
    V Vivek Narayanan

    you need to be an indian to make sense out of this,these aren't 'poor' jokes either.

    The Back Room career question

  • Stopping a running process (vb2005) while updating a progress bar
    V Vivek Narayanan

    thanks , i will try this:-D

    Visual Basic csharp

  • Stopping a running process (vb2005) while updating a progress bar
    V Vivek Narayanan

    the control works only for c#,it doesn't work in vb,can u give me example code for creating threads.

    Visual Basic csharp

  • Stopping a running process (vb2005) while updating a progress bar
    V Vivek Narayanan

    I'm writing an app in which a process(the vb .net component) is executed and a progressbar is updated simultaneously thru a do .. while loop . What i want to do is to add a cancel/stop button. In the stop button event code ,i've written code to 'kill' the running process . But when i execute the form ,the stop button (or for that matter any button) is not clickable,when the process and the do-while-loop code are running .Please Advice. Regards, Vivek

    Visual Basic csharp

  • How to get info from a file when it is being used by another process?
    V Vivek Narayanan

    Thanks a lot for giving the idea of using the file's length. Vivek

    Visual Basic help tutorial question announcement

  • How to get info from a file when it is being used by another process?
    V Vivek Narayanan

    I need this to update a progress bar.First a DOS service is run in the background , which writes a log file as it runs , the percentage info can be retrieved (there is no other way to get the percentage since this is a dos service) from the log file,but i get an error that the file is being used by another process(the DOS one).Its pointless to get info from the log file after the DOS process completes,as i need it to update a progress bar.Is there any solution to this? Thanks in Advance, Regards, Vivek

    Visual Basic help tutorial question announcement

  • System.Diagnosis.process
    V Vivek Narayanan

    if you use a generic exception such as "Exception" it will take a lot of time,to reduce that time you have to choose a more specific exception.The more generic your exception,the more longer the processing time.So its a compromise between Accuracy and Speed.

    Visual Basic question help

  • Where is the "Trusted Publishers" certificate root in the registry
    V Vivek Narayanan

    HEY!,Not Fair,anyone else?

    Visual Basic windows-admin cryptography

  • System.Diagnosis.process
    V Vivek Narayanan

    well,you could enclose it in a try ..... catch and get the message of the exception and find out,if there is no exception message,then the file would have been executed 'completely'

    Visual Basic question help

  • hi.........
    V Vivek Narayanan

    let the first menu item be item1 and the second be item2,then,write this in the click event sub of the first item item2.performClick() This way item1 is linked to item2,ie,if you click on item1 it will perform the click event code of item . Is this what you wanted to know?or is it something else?

    Visual Basic csharp tutorial

  • Image File Transparency
    V Vivek Narayanan

    You can't make a picturebox or a panel transparent but you can make a form transparent by adjusting its opacity property

    Visual Studio graphics question

  • Where is the "Trusted Publishers" certificate root in the registry
    V Vivek Narayanan

    I am just a bit too lazy to spend a few hours finding it,if someone knows the location of the key i mentioned ,plz tell where it is.

    Visual Basic windows-admin cryptography

  • How to create a function that does not return a value?
    V Vivek Narayanan

    thanks,i might appear like a newbie,but i'm not,its just that i learned everything by trial and error and my knowledge of the vb lang is here and there

    Visual Basic help tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups