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
R

raesa

@raesa
About
Posts
57
Topics
26
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Problem with JSObject
    R raesa

    Hi, I have written a small code to access javascript function from a java applet. My function fails at this point JSObject win = JSObject.getWindow(this); I do not understand what is the reason.It gives me following errors when i excute the program : Exception in thread "main" java.lang.UnsatisfiedLinkError: initClass at netscape.javascript.JSObject.initClass(Native Method) at netscape.javascript.JSObject.<clinit>(JSObject.java:61) at test.InJava4.start(InJava4.java:52) at test.Main.main(Main.java:30) Please have a look at my code written below and tell me if i have written anything wrong.Please do help me out. Thnx. My java Applet code is written below : import java.net.*; import java.applet.*; import netscape.javascript.*; import netscape.javascript.JSException; public class InJava extends java.applet.Applet { public void init() { try { System.out.println("hi i am in appltet"); String msg = "Hello from Java (using javascript alert)"; JSObject win = JSObject.getWindow(this); win.call ("doAlert", null); } catch (Exception Ex) { System.out.println(Ex.toString()); } } public void start(){} public void stop(){} public void destroy(){} } My JavaScript is written below : ; function doAlert(s) { alert(s); }

    Java help csharp c++ java javascript

  • Writing a simple HTML report using Java
    R raesa

    Hi, I have to write a report in HTML document using java. Can somebody suggest me some good tutorial or some good links that will help me in doing this task. It would be very helpful.Please do help me out. Thank You.

    Java java html help tutorial

  • Read an IGES (Initial Graphics Exchange Specification) File uaing C++
    R raesa

    Firstly, Thanx for the reply. Actually my task here is i have an input iges file. I have to read the geometry data using c++ from this file and recreate the geometry. I opened the file in a notepad and i found the data is in the form of some kind of numbers. I do not know how to read the geomtry from the file. It wold be very helpfull if you let me know if there are any good links related to this. Thank you.

    C / C++ / MFC c++ graphics tutorial

  • Read an IGES (Initial Graphics Exchange Specification) File uaing C++
    R raesa

    Hi, I have an IGES file.I have to read this file using c++. This basically has the graphics data (data realated to lines and otehr geometric entities) in the form of some numbers. I have no idea how to go about this task. Please do tell me if there is a way to read an IGES file. Thnx in advnce.

    C / C++ / MFC c++ graphics tutorial

  • call c# function in java
    R raesa

    Thnx alot for the help.

    Java csharp tutorial java help

  • call c# function in java
    R raesa

    Thnx for the help, i'll check it out.

    Java csharp tutorial java help

  • Calling C# function in Java
    R raesa

    I'm sorry i wasn't sure if the question was to be posted in C# section or Java section.

    C# csharp tutorial java help

  • call c# function in java
    R raesa

    Hi... I have to call a csharp function in Java. Can somebody give me a small example of how to do this. Please do help me out. Thnx.

    Java csharp tutorial java help

  • Calling C# function in Java
    R raesa

    Hi... I have to call a csharp function in Java. Can somebody give me a small example of how to do this. Please do help me out. Thnx.

    C# csharp tutorial java help

  • problem in setting backround image to a form created using OpenGL in c#
    R raesa

    Hi, I have a small problem.I have created a form using OpenGL controls.My task is to set an image file as background to the form.I am able to set the image when the form is loading but my image is flickering on the form.I dunnow what to do.Please have a look at my code below and do tel me what is the mistake there. code : public Form1() { sName = "C:\\Winter.jpg"; InitializeComponent(); simpleOpenGlControl1.InitializeContexts(); nFstFime = 0; Gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f); simpleOpenGlControl1.BackgroundImage = Image.FromFile(sName); Gl.glMatrixMode(Gl.GL_PROJECTION); Gl.glLoadIdentity(); Glu.gluOrtho2D(0, simpleOpenGlControl1.Width, 0, simpleOpenGlControl1.Height); } private void simpleOpenGlControl1_Paint_1(object sender, PaintEventArgs e) { Gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f); Gl.glClear(Gl.GL_COLOR_BUFFER_BIT | Gl.GL_DEPTH_BUFFER_BIT); if (nFstFime == 0) { b = new Bitmap(simpleOpenGlControl1.Width, simpleOpenGlControl1.Height); nFstFime++; } b = (Bitmap)Image.FromFile(sName); simpleOpenGlControl1.BackgroundImage = b; Graphics g = e.Graphics; g.DrawImage(Image.FromFile(sName), new Rectangle(0, 0, simpleOpenGlControl1.Width, simpleOpenGlControl1.Height)); } Thnx, Raesa

    C# graphics csharp game-dev help question

  • "Error saving document"
    R raesa

    Firstly, Thnx for the reply. I haven't touched the file and i have destroyed all the objects related to it, yet i get the same error.I just dont get what the problem might be. :(

    C# help

  • "Error saving document"
    R raesa

    Hi, I have a small problem.I generated a pdf file with some temperory name and later i am renaming the file.When i am trying to rename the file using FileSystem.Rename, i get an exception "Error saving document". I don't understand why am i getting this error.I checked if my file is already open, but it was not. Please do let me know if you have any ideas. Thnx in advance.

    C# help

  • How to convert LZW type tiff file to PDF c++?
    R raesa

    Hi.... Actually here i have been given a set of tiff files.Now when you go and look into each tiff file's page properties (View Menu -> Page properties), you will be able to see its compression type.My task requires the tiff files with 'LZW' type compression to be converted to PDF.Wheni execute the code that you had suggested in your previous link, i get a blank PDF file.It seems to work for the other tiff files with different compression type but for the LZW compression type it doesn't seem to work. I have no idea what to do. Please do let me know if you have any solution.Thanks alot.

    C / C++ / MFC

  • How to convert LZW type tiff file to PDF c++?
    R raesa

    Hi.... Thnx for the reply.... I downloaded the code and executed it on the tiff files that i have. The code seems to execute perfectly for the tiff files that are of 'CCIT Group 4 FAX' and 'CCIT Group 3 FAX '.But for the files having compression type as 'LZW', i get a blank PDF file as output. Please do let me know is there a way of converting the LZW type tiff files. Thank You.

    C / C++ / MFC

  • How to convert LZW type tiff file to PDF c++?
    R raesa

    Hi, Can anyone tell me how to convert a LZW compression type tiff file to PDF? Please do help me out. Thnx in advance.

    C / C++ / MFC

  • Problem accessing a managed dll on a remote machine (in network)
    R raesa

    Hi.... I have a small problem.I have a managed dll developed to execute a simple dialog using VC++ 2005.When i load this dll in my system, it works perfectly fine.But when i share this dll in my system and launch this dll on another remote machine in network, the dialog fails to launch.Is it a problem with managed code or do i have to give some settings in my VC++ project.Please do let me know.I just don't get what the problem is?Please do help me out.... :( Thnx in advance..

    C / C++ / MFC help c++ sysadmin question

  • Problem in accessing C# dll in VC 6.0 project
    R raesa

    My project requirement is that i have to use VC 6.0 Is there a way to solve this problem?I just dont undertsand why the code isn't able to identify my classes.Is there a problem with my tlb file generation.Please do tell me if there is a solution to this ? Thnk you ...

    C# help csharp c++ com

  • Problem in accessing C# dll in VC 6.0 project
    R raesa

    Hi, i have a small problem i have a csharp dll built in VS2005.I have to access the functions from this dll in my VC++ project done in VC 6.0.My VC project is not able to identify my C# namespace and class.I dont get what the problem is. Please do have a look at my c# code and VC Project code and do let me know if im making some mistake.I have also pasted the errors that i am getting. please do help me...i'm not able to understand the problem. :( C# code: using System; using System.Collections.Generic; using System.Text; namespace TestDllCsharp { public class Class1 { public void PrintMessage () { System.Windows.Forms.MessageBox.Show("Test"); } } } VC Project : #import "TestDllCsharp.tlb" using namespace TestDllCsharp; #include <stdio.h> void main() { HRESULT hresult; CLSID clsid; CoInitialize(NULL); hresult=CLSIDFromProgID(OLESTR("TestDllCsharp.Class1"),&clsid); if (hresult == 0) { _Class1 *t; hresult=CoCreateInstance(clsid,NULL,CLSCTX_INPROC_SERVER,__uuidof(_Class1),(LPVOID *) &t); t->PrintMessage (); CoUninitialize(); } } I get errors like : error C2065: '_Class1' : undeclared identifier error C2065: 't' : undeclared identifier Thnx in advance.

    C# help csharp c++ com

  • Problem accessing C# dll in VC 6.0
    R raesa

    Hi, i have a small problem i have a csharp dll built in VS2005.I have to access the functions from this dll in my VC++ project done in VC 6.0.My VC project is not able to identify my C# namespace and class.I dont get what the problem is. Please do have a look at my c# code and VC Project code and do let me know if im making some mistake.I have also pasted the errors that i am getting. please do help me...i'm not able to understand the problem. :( C# code: using System; using System.Collections.Generic; using System.Text; namespace TestDllCsharp { public class Class1 { public void PrintMessage () { System.Windows.Forms.MessageBox.Show("Test"); } } } VC Project : #import "TestDllCsharp.tlb" using namespace TestDllCsharp; #include void main() { HRESULT hresult; CLSID clsid; CoInitialize(NULL); hresult=CLSIDFromProgID(OLESTR("TestDllCsharp.Class1"),&clsid); if (hresult == 0) { _Class1 *t; hresult=CoCreateInstance(clsid,NULL,CLSCTX_INPROC_SERVER,__uuidof(_Class1),(LPVOID *) &t); t->PrintMessage (); CoUninitialize(); } } I get errors like : error C2065: '_Class1' : undeclared identifier error C2065: 't' : undeclared identifier Thnx in advance.

    C / C++ / MFC help csharp c++ com

  • MSFLXGRD problem in 64bit machine (MFC/C++)
    R raesa

    Hi..... Thnx for the reply.I have pasted the code below from dlgcore.cpp.The code fails at function CreateDlgIndirect.Do have a look. If possible plse create an MFC Application in VS 2005 and insert an active x control (MS FLEX GRD) and execute it.i think you might get the error "Debug Assertion failed", while executing the dialog.to remind, my system is a 64bit system .Thnx once again.Please do let me know if you get to know the problem. thnx. INT_PTR CDialog::DoModal() { // can be constructed with a resource template or InitModalIndirect ASSERT(m_lpszTemplateName != NULL || m_hDialogTemplate != NULL || m_lpDialogTemplate != NULL); // load resource as necessary LPCDLGTEMPLATE lpDialogTemplate = m_lpDialogTemplate; HGLOBAL hDialogTemplate = m_hDialogTemplate; HINSTANCE hInst = AfxGetResourceHandle(); if (m_lpszTemplateName != NULL) { hInst = AfxFindResourceHandle(m_lpszTemplateName, RT_DIALOG); HRSRC hResource = ::FindResource(hInst, m_lpszTemplateName, RT_DIALOG); hDialogTemplate = LoadResource(hInst, hResource); } if (hDialogTemplate != NULL) lpDialogTemplate = (LPCDLGTEMPLATE)LockResource(hDialogTemplate); // return -1 in case of failure to load the dialog template resource if (lpDialogTemplate == NULL) return -1; // disable parent (before creating dialog) HWND hWndParent = PreModal(); AfxUnhookWindowCreate(); BOOL bEnableParent = FALSE; #ifndef _AFX_NO_OLE_SUPPORT CWnd* pMainWnd = NULL; BOOL bEnableMainWnd = FALSE; #endif if (hWndParent && hWndParent != ::GetDesktopWindow() && ::IsWindowEnabled(hWndParent)) { ::EnableWindow(hWndParent, FALSE); bEnableParent = TRUE; #ifndef _AFX_NO_OLE_SUPPORT pMainWnd = AfxGetMainWnd(); if (pMainWnd && pMainWnd->IsFrameWnd() && pMainWnd->IsWindowEnabled()) { // // We are hosted by non-MFC container // pMainWnd->EnableWindow(FALSE); bEnableMainWnd = TRUE; } #endif } TRY { // create modeless dialog AfxHookWindowCreate(this); if (CreateDlgIndirect(lpDialogTemplate, CWnd::FromHandle(hWndParent), hInst)) { if (m_nFlags & WF_CONTINUEMODAL) { // enter modal loop DWORD dwFlags = MLF_SHOWONIDLE; if (GetStyle() & DS_NOIDLEMSG) dwFlags |= MLF_NOIDLEMSG; VERIFY(RunModalLoop(dwFlags) == m_nModalResult); } // hide the window before enabling the parent, etc. if (m_hWnd != NULL) SetWindowPos(NULL, 0, 0, 0, 0, SWP_HIDEWINDOW| SWP_NOSIZE|SWP_N

    C / C++ / MFC help c++ css debugging
  • Login

  • Don't have an account? Register

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