sandy123's Q&A profile
Windows Forms Source Safe, IIS, and Apache
Can Source Safe be set up to use Apache instead of IIS ...Show All
.NET Development Listening to .NET events using COM interop.
Hi all, I'm looking to embed a .NET component in a COM application (Delphi with VCL). To produce a proof of concept, I've created a new class library and exposed it to COM, created a class which is COM visible and allows COM clients to send a message (call a method) and register for events. This all works fine, the COM clients (I've done one test bed in VB6 and one in Delphi) can create my object, call a method on it and respond to the event. ...Show All
Windows Forms A problem with SHDocVW.dll
Hello, when I reference SHDocVW.dll in my C# application I get a problem with OpenFileDialog. When I try to open a folder with the right mouse button I get the following error message: "Cannot find the file ... (or one of its components). Make sure the path and filename are correct and that all required libraries are avaliable" If I open the folder with double-click, it works. Can anybody help me Thanks Vladislav ...Show All
.NET Development .Net 2.0 Framework Issue
I have a C# DLL on .Net 1.1 framework. I am calling this DLL from Foxpro code using as CreateObject("xxxxxxxxx.xxxxxx"). It worked fine. As soon as I installed .Net 2.0, it is no longer working. I am getting "OLE error code 0x80131509; Unknown COM status code. I used gacutil to registered the DLL. Any help will be very much appriciated. Thanks, Rob I registered as followed: regasm /u C:\ ...Show All
.NET Development Debugging first sample - Get login screen on browser
When I debug the first program and it launches my browser to view the app, there appears a login screen asking for username and password. I have tried to configure the ASP.NET configuration file for permissions, but when you do this it is for a certain localhost port such as 1337. But when you run the debug again, the localhost file changes the number to port 1559. I have tried different logins and such, but I get this mess ...Show All
Smart Device Development How to ping a winCE emulator from desktop in the same machine.
How to ping a winCE emulator from desktop in the same machine ...I can ping the desktop from emulator but I cannot do it the other way. Is there any body who can help me Thanks. Hi Egay, I managed to ping my emulator. Here's a few things to check: Do not "cradle" your emulator (by default, it's not cradled). Configure your Emulator Properties, under Network tab, check the checkbox "Enable NE2000 .. ...Show All
Visual C# animating text and image in a deskband
Hi, I have a deskband application, where I want an image and a text string to animate into the area, and the out again. I tried doing this with simple GDI+ programming to draw an image and a string, and then animating the coordinates for that drawing using a Timer object set to about 50 milliseconds. This gave a terrific result, with the only drawback being that the CPU takes a lot of punishment. It's ok at first, but after a minute, the C ...Show All
Visual FoxPro delete record
this question seems to be ... but I tried many times to do it but I couldn't . I'm using VFP 6.0 . I created a form and take data from mytable . After that I created Del button and wrote a small code in Click event . This is my code : if messagebox("Do you want to del this record ",36,"Notice")=6 delete thisform.refresh and the result is 0 record deleted . I don't know why . Is this related to "primary key" from mytable . If someboby ...Show All
Visual Studio Team System Visual studio locking up when doing TFS stuff.
Hi, I am wondering if anyones else is having a similar problem as me. It seems at certain times when I do various actions (getting latest code, checking in something) the action completes and then Visual Studio locks up to the point where I have to kill the devenv.exe from the task list. It has happened to me quite a few times now. I am running the VPC image for the server and have installed the TFC from the en_vs_2005_tfs_trial.iso file. ...Show All
Visual C++ relative path
hi! how can i specify a relative path in vc++ 2003 i have a program (.exe) in some path. this program needs to read a txt file in the same path, but i don't want to specify the absolute path(ie, c:\dir1\dir2\text.txt), i want specify just the file name (ie, text.txt). anybody can help me thanks, marcelo Here is some of my own code, hope to be helpful CString m_AppPath; TCHAR temp[MAX_PATH]; ::GetModuleFileName(AfxGetInstanceH ...Show All
Visual C++ Calling C from C++/MFC in Visual Studio 2005
Hello, I have Win32 C code that compiles fine with VS 6.0. I'm porting the code to VS 2005 to be called from an MFC application. The code compiles fine, but I'm encountering a linker error, LNK2019 when I add a call to a specific function from the OnInitDialog function. I have other calls to other C functions in OnInitDialog and they do not cause this error. I'm compiling with the /TP flag and the C code in question (which causes the fai ...Show All
Windows Forms Changing Keyboard Layout ???
Hi for all I have samll problem but need your help My Keyboard Language is ar-EG (Arabic Egypt) O.K programmatically I want to change the keyboard layout at MSDN http://msdn.microsoft.com/library/default.asp url=/library/en-us/intl/nls_238z.asp ar-EG ID is 0x0c01 Using LoadKeyboardLayout API Function and giving it this ID I can not switch the keyboard layout Why any advice to solve plz thanks You need to us ...Show All
.NET Development XSD and XS redefine
Hi, I 'm having a little difficulty with XSD and using xs:redefine. I have a local XSD schema , which references a remote XSD schema. In my REMOTE XSD schema I have: -------------- < xs:complexType name ="Block"> < xs:choice minOccurs ="0" maxOccurs ="unbounded"> < xs:element ref ="remote_elt"/> </ xs:choice > </ xs:complex ...Show All
Visual C# KeyPress event to alter textbox data
I am converting some VB code to C# code and Im having problems with the following code Private Sub txtQty_KeyPress(ByVal sender As Object, ByVal e AsSystem.Windows.Forms.KeyPressEventArgs) Handles txtQty.KeyPress If (e.KeyChar < "0" Or e.KeyChar > "9") And Not (e.KeyChar = ControlChars.Back) Then e.Handled = True What it does is if the key entered is not a number it doesnt enter the character. Trying to do the same in C# I ...Show All
Visual Studio Tools for Office Creating xll files (excel library files) in visual c++ 2005 express
Hey. I know this forum isn't specific to excel, but I haven't gotten any responses from the excel.programming newsgroup so I thought I would try here. I am trying to create xll files for excel so I can use my existing c++ code to do custom functions through excel. I have a book which explains the basic ideas, but it says to include xlcall.h and xlcall32.lib from the excel 97 sdk. These files won't compile in visual c++ 2005 express. i was wonder ...Show All
