Matthew Cosner's Q&A profile
Visual C# Defining a DLL entry point in C#? (DLLEXPORT not DLLIMPORT)
I want to call a DLL class library written in C# from unmanaged C++. I saw this example: http://msdn2.microsoft.com/en-us/library/2x8kf7zx.aspx . It works so I tried to transfer it to my files. I got a System.EntryPointNotFoundException. The problem is: How do you define an entry point in a C# DLL The C++ seems to work so the error must be in the C# DLL. hi there, The error that you are getting means that either the function name is in-correct or the parameters that are provided by you are not proper. Please check the name of the function and its parameters as well its datatypes. Secondly initially ...Show All
Windows Forms .Net 2 Progressbar not working in Win2000?
Hi all, Hope you can help me. I've ported a Windows Forms app to .Net2 and VS2005. In one form, I am using the progressbar control in Marquee style with animation speed set to 200. In this form, I'm running a backgroundworker. As soon as the backgroundworker completes, the form closes itself. Everything works just fine on Windows XP. On Windows 2000, the actual processing does work, but the progressbar is not animating! It's just empty. I don't think that Microsoft offers support for windows 2000 using the new frame work... but maybe you can create your own progress-bar (a lot of on-line examples for that) ...Show All
Visual C++ doubt regarding the linking in the compilation process
Dear all, I would like to know about some concepts of linking process. I have three files, lets say a.c , b.c and c.c in a project a.c : ------ int aFunc() { return 5 + 6; } b.c ----- void bFunc() { aFunc(); } c.c ---- main() { bFunc(); //Code for some other things also. } now, the code for aFunc(), bFunc() will be included only if I call bFunc() from c.c, or they are included by default I mean to ask size of c.exe is always same as sizeof a.obj + sozeof b.obj or it depends on weather I'm calling bFunc Actually why am I asking this question is I'm facing a severe problem in my project which I could not solve. For ur refe ...Show All
Windows Forms Local Server Not Working
I just installed Terrarium Server Beta on our local network. Win200 IIS 5 Net 1.1 Etc. When the client tries to connect I get: Unable to verify this version is enabled Where can I get some help with this The source code is not available, but you can download the server from www.windowsforms.net/terrarium I have the same problem with the missing&nbs ...Show All
Software Development for Windows Vista The Rating and Keyword function.
when i try this function and "Add a title" in the bottom of the window, i receive an error message an unexpected error is preventing the operation. make a note of this errore code, which might be useful if you get affitional help to resolve this problem: error 0x88982F04: no error description available someone have the same problem sorry for my english. I'm guessing you're talking about Explorer I'll pass the word along to the development team. ...Show All
Visual Studio Express Editions Setting ComboBox.Items from app.settings
I want to store my Combobox.Items string collection outside of my application (i.e. not hard-coded) as they are values that would be useful to change without recompiling the code. I thought, at first, to store these values in the application settings as a StringCollection and would have assigned this to Combobox.Items at form load. This would have been straightforward as they are both type StringCollection, however, disappointingly Combobox.Items property is read-only (I do not know why as it seems quite logical and useful to want to set this in code). Anyway, given this fact, can anyone suggest the best way of enabling Combobox.Items to be ...Show All
SQL Server SQL2005
Hi Is there any other way on SQL2005 to get this information select * from SPT_SERVER_INFO WHERE ATTRIBUTE_ID=18 becasuse i cant find SPT_SERVER_INFO on the master database, works finne om sql2000 Best Regards Janne ...Show All
Visual Studio Tools for Office Is this possible with VSTO 2005?
I am doing some research into what approach to take on our next project. Basically we need a way to generate a booklet with some 80 or so reports pooled from our DW. There has to be some standard wording (state required) and some fields that are dynamic (like Name or Organization, Year etc.). User should be able to add additional sections in table of content and to add custom footnotes to the reports. Some sections might have to protected so no change can be made. I just started looking into VSTO and I am wondering if Word would be good front end for this. Reports could be either in Excell or Crystal or even just Datagrids. So basically, ...Show All
.NET Development ASP.net 2005
hi All people I instant VS.2005 after that i run Webapplication it ok(Web brower is IE) and after i instan Firefox but when i run WebApplication(F5 in vs.2005) to be it run on Firefox When i run on Fire fox i cant debug WebApplication Some body help me. how is Config vs.2005(WebApplication run on IE"Internet Explore") Note: When i uninstant Vs.2005 & Firefox after that i instant Vs.2005 but it ask unable to stat "C:program/ Mozilla firefox/ firefox.exe" i try copy IE and Rename it = "firefox.exe" but not yet thanks very much i have the same problem and i solved by, Open IE Se ...Show All
Windows Forms webbrowser in vb2005
i have a runtime created webbrowser and i want to use it's ProgressChanged event and some others, too. how can i do this I used this code and it worked just fine... Private Sub WebBrowser1_NewWindow( ByVal sender As Object , ByVal e As System.ComponentModel.CancelEventArgs) Handles WebBrowser1.NewWindow Dim NewURL As String = CType (sender, WebBrowser).StatusText Dim TabPageTemp As New TabPage(NewURL) Dim WebBrowserTemp As New WebBrowser WebBrowserTemp.Dock = DockStyle.Fill AddHandler WebBrowserTemp.NewWindow, AddressOf Me .WebBrowser1_NewWindow TabPageTemp.Controls.Add(WebBrowserTemp) Me ...Show All
SQL Server Do we still need a common share mount point in SQL2K5
Replication in SQL2K required a common file share between publisher and subsriber. Our security policy will not allow our DB servers to communicate via net bios across the firewall. Can SQL2K5 perform replication using the normal database communication ports (1433 or 2433) As for common file share you mention, I am not sure if you mention snapshot files shared between publication and subscriptions. If it is, yes, snapshot are usually saved in UNC folder between distributor and subscriber. But snapshot files can also be transfered through FTP, and you can configure port number. Please refer to BOL for more detailed information. ...Show All
Windows Forms jagged arrays don't serialise correctly as properties in the visual studio designer
Hi! I have a problem when using jagged arrays as properties. I'm using c# visual studio 2005 .NET 2.0. When I declare a propety as a jagged array, visual studio's designer seems to obmit a pair of square brackets when saving the property in the xxx.designer.cs file. Example: //my declaration public int [][] MyProperty2; //my initialisation MyProperty2 = new int [] [] { new int [] { 25 } }; //the designers serialisation MyProperty2 = new ...Show All
Visual Studio 2008 (Pre-release) Emboss effect
Can anybody help me with EmbossBitmapEffect After export XAML from GD some Paths with embossing convert to png, and emboss live many Paths. "In XAML" I found EmbossBitmapEffect but can create cool emboosing :(( Can you give me some samples of EmbossBitmapEffect Thx Effects (like emboss) can be applied to any UIElement. <Page xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " > <WrapPanel> <Image Source="earth.b ...Show All
SQL Server SQL Sever 2005 only has client side?
Why I couldn't find any datebase engine setup SQL Server 2005 Developer Windows xp You're going to have to give us more to go on here. You're saying that you installed Dev edition on XP, and the engine isn't there Take a look at the install logs, located at %Program Files%Microsoft SQL Server\90\Setup Bootstrap\LOG and below, and see if any errors are reported for the engine. ...Show All
Visual Studio Express Editions Playing Avi's w/Window Media Player.
Hi, I want to play AVI's with Visual Basic 2005 using the Windows Media Player interface. I made and APP. inserted the Windows Media Player control and work fine. I did pass the AVI want to play by software and want to know by software how to Stop, Play, Pause, FF, RW, get the current position and play an AVI file from a specify position. All help is appreciated Thanks, http://msdn.microsoft.com/coding4fun/inthebox/NDMediaEdit/default.aspx ...Show All
