MoniqueV's Q&A profile
.NET Development How to implement GetFunctionPointerForDelegate function in .NET 1.1
I try to wrap some native win32 api, but it is need the callback to be the parameter of SendMessage. I solved this by using the new GetFunctionPointerForDelegate function in .NET 2.0, but in .NET 1.1, I found no way to do the same thing, I also found the Delegate.Method.MethodHandle.Value, Delegate.Method.MethodHandle.GetFunctionPointer() and the return value of GetFunctionPointerForDelegate function are different. I was confused. How can i implement GetFunctionPointerForDelegate function in .NET 1.1 And how to use The three value above Thanks. this MSDN mag article discusses it (about 2/3rds down) http://ms ...Show All
Visual Basic serial port - com
I toke from the VB6 the example about using the serial port with MSComm. I run this program in VB2005 after it was upgrade ofcourse by the VB2005 and try to send and receive strings in a loop(1-1000). But sometimes in this loop the string that I'm sending is stuck or something that I don't understand why I run this loop with the some strings a lot of times and everytime is a different string that stuck. if someone can tell me why In VB2005 there is something similar to MSComm that I can use Hi, Visual Basic 2005 has a separate SerialPort control which you can use for serial com ...Show All
.NET Development NotifyAlert.exe-Common Language Runtime Debugging Services
How can I get rid of this Window popping up NotifyAlert.exe Common Language Runtime Debugging Services Application has generated an exception that could not be handled. Process ID=0x7fc (2044), Thread Id=0xc38(3128) Click OK to terminate the application. Click CANCEL to debug the applicat ...Show All
Visual C++ When I build, I get no exe
Ok when I build my project, I get no exe, but I do get a build log, and other files. Any clue I get no errors, a few warnings...This code already compiled as an exe for someone else under 2003 .net, but when I convert it to 05 and build it, i get no exe Edit: The files I get are buildlog.htm, the exe.intermediate.manifest file, the object file, resource script, vc80.idb, and mt.dep ...Show All
.NET Development DataGrid Populating Columns manually
Hi I am beginning to Use Visual Studio 2005, have a question on how to populate a DataGrid, not using the datasoure and binding method, but to individually assign the coluimn values returned from a query individually. Can this be down, reason I am building a Photographis app for use in my buisness and need to display a image associated with the data retrieved. hi, I dont know much but i hope it should solve your problem. create a dataset with a new table and new columns and datatype as large object. create a new datarow and assign the values retrieved from the query to that datarow.   ...Show All
Windows Forms Column spanning cell editor
I have got display of colunm spanning cells working in the datagrigview control bydrawing in the RowPostPaint event handler. However, I cannot seem to find the correct event to handle in order to change the size (and if necessary, type) of the cell editor. Can anyone point me in the right direction Thank you, this has helped a lot. Seein ...Show All
Visual Studio 2008 (Pre-release) Knowntypes from configuration
Hi I have been trying to setup known types using the app.config file. According to the intellisense I'm not suppose to use the 'declaredtype' element, which is contrary to the winfx help. Where can I find a working sample for this Thanks Hello, I've come across a nice set of samples. One of them might be useful. Check this link: http://www.idesign.net/idesign/DesktopDefault.aspx tabindex=-1&tabid=19&download=175 or go to http://www.idesign.net/idesign/DesktopDefault.aspx and navigate do 'Download' section. emkatu ...Show All
Visual Basic Copy and paste
Ok. i have been trying to figure out how to copy and paste text in my VB programs. And it just does not want to work (copy and cut don't). any one have a sample or somthing I want to find the hilighted text and deal with it accordingly when i copy or cut. Sure you can. In my exmaple, the sub it fired from the Keyboard _keyDown event. In the event args, there's ByVal Sender as object. Sender will be the actuall button. For example... public sub main() addhandler Textbox1.Keydown, Addressof Blah end sub Public sub Blah(ByVal sender as Object, ByVal e as EventArg ...Show All
Microsoft ISV Community Center Forums Security Warning
I’m using an ‘Ole1.CreatLink (Path)’ to a .WMD video file, followed by DoVerb to start the video. Before the video will start, Windows (XP service pack 2) gives the Open File – Security warning as though I was accessing a file from the web. This destroys the flow of my product in the eyes of the user. How can I prevent this The .WMV file is just a file I created using Microsoft Movie Maker. Per the support engineer: The warning dialog is by design from Windows’ point of view and is a security feature which cannot be disabled. It is displayed by the Windows Packager whenever the packager is used to display a pseud ...Show All
Visual Studio Team System Permission problems
hello, I've created a domain group "ts\developers" with two users: dev and dev2. Then in Team Sysem I created a TFS global group "Developers" adding "ts\developers" windows group as members (not each devx windows accounts). The "Global\Developers" TFS group has the following permissions: - Access the version control system - Create a workspace - Create new projects - Edit domain-level information - View domain-level information At the team project level the permission for the "Global\Developers" are all except - delete test results - delete this project When I open the team project froman dev account (ie dev1) which is member of "ts\Develop ...Show All
SQL Server Error on SQL cluster install
I am trying to install SQL 2005 in a 2-node Windows 2003 cluster. I set the cluster up through Virtual Server 2005 with 2 virtual nodes and one virtual domain. The nodes can connect to each other as well as the physical machine. When I try to install a fresh copy of SQL 2005 on my cluster, I get an error every time. The error stops the installation while checking system configuration after installing prerequisites. The log file entry is as follows: ******************************************* Setup Consistency Check Report for Machine: --SERVERNAME-- ************* ...Show All
Visual Studio Express Editions How do I give the user a chance to resume after clicking form close?
Visual Basic 2005 Express Edition: When the user clicks the "X" in the upper right corner of form1, I would like to ask him if he wants to "Quit the application, yes or no". How do I give him a chance to resume after clicking form close Handle the FormClosing event, and prompt the user if they want to quit or not. For more information see this MSDN article . ...Show All
Windows Forms can't cancel xp shutdown
Hello, I'm writing a backup program that shuold run at shutdown and i'm starting it from a launcher program written in c# that should detect windows shutdown/logoff, start the backup process and after it finishes shut down or log off. I managed to get the launcher working under windows 2003 server and windows 98 flawlesly using any of the methods below, but it cannot prevent the shutdown under windows XP SP2 (sometimes it succedes and sometines not). Can anybody please give me an idea on what else to try besause I'm ready to give up. Here are the methods I tried: - Setting "cancel" property to "true" in the formClos ...Show All
Visual Studio Express Editions Problems arithmetic sentences
Hi, mi code problems in visual c++ express edition are next: If I try Decimal^UmbralInicial; UmbralInicial=UmbralInicial+UmbralInicial; error C2678: binary '+' : no operator found which takes a left-hand operand of type 'System::Decimal ^' (or there is no acceptable conversion) and if I try UmbralInicial++; ocurrs this error error C2845: 'System::Decimal ^' : pointer arithmetic not allowed on this type These errors also exist when I work with doubles or int variables. Thank you very much You can add two decimals using the "Add" method. As in: Decimal a(10); Decimal b(20); ...Show All
Visual Studio Team System Work Item customization - referring other work items in dropdowns
While customizing the process template - created work item A - creating work item B, want to use a dropdown that lists all work items created of type A i.e If there are work items called Parts and Machine, want to access a dropdown of all created Parts in the Machine work item What is the syntax for doing the same - This is not the case of a global list Is there a specific syntax of AllowedValues that can read from instances of a work item Regards Hi Mat, I cannot repro your scenario - if query returns non-empty set of results, accessing wi[0].Title doesn't throw any exception. If the result set is empty, wi[0].Title throws 'index ...Show All
