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
S

sakthii

@sakthii
About
Posts
12
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Calling jar file from javascript at client side
    S sakthii

    Thanks for your reply... at last some one is hearing me ! Well.. I am developing a tool which is very internal to our office.. a web access to one of the hardware which is connected to com port. Got a jar file with the hardware which shall be used to connect the hardware through comport. I dont have the source of the jar file. So, i am not worrying about the security and whether it is feasible etc. I would appreciate if some one can give the solution.. for the problem i posted. There is some guy who developed hardware is giving the jar file.. think he had lot of trust with Java language growth!

    JavaScript tutorial java javascript html sysadmin

  • Calling jar file from javascript at client side
    S sakthii

    Is it possible to call a method of jar file which is residing in Client side, through java script. this is required to access USB port for testing tool development. Here is give a simple example to help me with code snippet. A simple Java program (simple.java) which has two methods GetName() and GetID() which returns string and integer value respectively. which is then converted to jar(simple.jar) and placed in C:\Temp\simple.jar. Can some one help me in java script code snippet, how to call the jar file inside my html file, and how to access the GetName() and GetID() method. Note: Simple.jar file will be at client machine and NOT at server side, may be i have to learn how to use plugin to download simple.jar from server to client (will be happy if i get some pointers on this too!) FYI, I am newbie to javascript.

    JavaScript tutorial java javascript html sysadmin

  • Any algorithm for Text Edit for Limited Text Display
    S sakthii

    I am emulating mobile in windows platform.. so I have two text box emulating 2 lines of LCD of mobile. Max number of character that i can store in memory can be 50 per line, but the only 20 characters can be displayed in LCD(text box) at any point of time. I have to take of scrolling left, scrolling right, including insertion and deletion of character in LCD(text box) I know i have to take of Cursor position, and possibly have MasterBuffer which will contain the 50 characters and TemporaryBuffer which shall contain 20 characters to display. I can work out a logic to take care of insertion, deletion etc. But before i start doing my own logic, i wish to know is there any algorithm defined for it already as or any library available or any kind of class.. or code snippet.. i dont want to start from ground zero if it is already something is available.. as i felt text editing in mobile is common.. Let me know if you want more info.. Advance thanks on your reply!

    C / C++ / MFC algorithms performance

  • Structure Value is not getting updated
    S sakthii

    I am using watch window. I created new project (windows console application) and added the file to it and same code is working!!! I think some problem with the Windows Forms Aplication. problem with IDE ?!

    C / C++ / MFC c++ help database question

  • Structure Value is not getting updated
    S sakthii

    Thanks to all, memset problem is solved, i could see the structure is set with 0. sakthii wrote: Problem no: #3: I see 13 is getting updated in myEntry[1].resevered1 variable... Even though you are not assigning anything to it? No. it happens when I am assigning the value to other parameter like myEntry[1].length= 4 How are you verifying the values? verifying using step by step debugging, I am using Visual Studio 8.

    C / C++ / MFC c++ help database question

  • Structure Value is not getting updated
    S sakthii

    I created a form application File->New->Project->VC++->Windows Form Application. I created couple of .Cpp files and .h files. I have structure defined in .h file typedef struct _PHB_ENTRY { unsigned char name[30]; unsigned char add[50]; int checksum; int lenght; int reserverd1; int reserved2; } PHB_ENTRY; I have declared a variable in .cpp file, which is nothing but a 'C' code. PHB_ENTRY myEntry[50]; First i have init function, thought to initialize the struc with null, so i used memset memset(myEntry,NULL,50); Problem no #1: I cant see index 0 is intialized to NULL ! then i started initializing the struct strcpy((char*)myEntry[1].name,"STEFY"); Probmelem no #2: I can see STEFY being copied from myEntry[1].name[4], first for bytes are empty , that is myEntry[1].name[0]...myEntry[1].name[3] are empty!! i assigned other values. myEntry[1].checksum = 13; myEntry[2].length = 4; Problem no: #3: I see 13 is getting updated in myEntry[1].resevered1 variable and i cant see myEntry[2].length getting updated! can some one help me out on this strange problem?! Just a simple C code though!!!

    C / C++ / MFC c++ help database question

  • Cursor control in Text Box
    S sakthii

    Thanks for your reply. I posted this query after searching through net and going through codeproject. There are many features available for WindowsCE! I am working on WindowsForms. I am hardcore C Programmer, I am introduced to C++ because of MFC/Visual Studio to create gui to my back end C program library. I am switching over from MFC to windows forms as i am informed that WF is easy than MFC. I am learning Windows Form now, and i see examples for VB, C# and C++. I prefer to use C++ as i can manage and understand the same compare to other. I created Windows Forms project using following options: File->New->Project->VC++(main option)->Windows Forms Application in Visual Studio 2008 professional edition. I really dont know whether C# or C++ is used by default by the VS2008 while creating the template! I looked into this site http://msdn.microsoft.com/en-us/library/system.windows.forms.cursor(VS.71).aspx my requirement is I wish to change the cursor based on button press inside the text control and back to default on clicking another button. I used following code. private: System::Void button4_Click(System::Object^ sender, System::EventArgs^ e) { // creating new cursor System::Windows::Forms::Cursor= gcnew System::Windows::Forms::Cursor("MyCur.cur"); // this should set a cursor for all TextBox inside the form System::Windows::Forms::TextBox::Cursor::set(mycur); //setting the focus to textBox1 textBox1->Focus(); } // to get default cursor private: System::Void button5_Click(System::Object^ sender, System::EventArgs^ e) { System::Windows::Forms::Cursor::Current = System::Windows::Forms::Cursors::Default; } Result: on button4 press, the whole form gets the new cursor. And the focus given to textBox1, with default cursor! on button5 press, it is not reverting back to default cursor.

    modified on Tuesday, June 2, 2009 8:51 AM

    Windows Forms winforms design tutorial

  • Cursor control in Text Box
    S sakthii

    I am not getting you henry!

    Windows Forms winforms design tutorial

  • Cursor control in Text Box
    S sakthii

    I like to simulate Mobile UI using Windows Forms. I want some pointer to implement following features, 1. How to display cursor(horizontal cursor "_" and vertical cursor "|") inside text box control 2. How to get cursor position and move the cursor. Some one can also suggest whether TextBox control is enough for the above implementation or whether i should go with RichTextBox control thanks

    Windows Forms winforms design tutorial

  • Display TIFF image in Windows Forms environment
    S sakthii

    like to know how to display TIFF image in Windows Forms. I am using Visual Studio 8. Created Project using VC++ -> WindowsFormsApplication

    C / C++ / MFC csharp c++ visual-studio winforms tutorial

  • VS8: how to link C static library in Windows Forms
    S sakthii

    Thanks for your reply. I will try.

    C / C++ / MFC tutorial csharp c++ dotnet visual-studio

  • VS8: how to link C static library in Windows Forms
    S sakthii

    I am using Visual Studio 8. I created two win32 empty project and created C "Mylib.c" "MyWrapperlib.c" file to get static library Mylib.lib and MyWrapperlib.lib. I created another win32 empty project and when i link the static library "MyWrapperlib.lib" (with Mylib.lib and MyWrapperlib.lib in library path) with simple C code "TestApp.C" with main(), it is working fine. I have used windows.h in "Mylib.c" and "MyWrapperlib.c" for FILE operations. I want to have a GUI application, so I created NewProject->CLR->Windows Forms Application (MyUIApp.Cpp). When i used MyWrapperlib.lib, it gave linking error. so I created DLL for MyWrapperlib.c by using #define dllexport __declspec(dllexport) enclosing with extern C When i use MyWrapper.dll in MyUIApp.Cpp, it is giving below error "fatal error LNK1107: invalid or corrupt file: cannot read at 0x2B0" Can some guide me how to create 'C' lib/dll and use it with GUI application.

    C / C++ / MFC tutorial csharp c++ dotnet visual-studio
  • Login

  • Don't have an account? Register

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