Software Development Network Logo
  • Visual C#
  • Visual Studio
  • SQL Server
  • .NET Development
  • Microsoft ISV
  • VS Team System
  • Game Technologies
  • SharePoint Products
  • Windows Forms
  • Audio and Video
  • Windows Vista
  • IE Development
  • Visual FoxPro
  • Smart Devicet
  • Visual Basic

Software Development Network >> Simon Clemen's Q&A profile

Simon Clemen

Member List

Tom Helm
Steve Wenck
gg1
cssjm
fabro_ec
jennifer xiao
moke48462
Ninel_G
Wil Burton
JohanK
R.Tutus
BrentHecht
Will Merydith
dabrosch
Rob Manger
Maliks
bbossi
dberce1
Joel_F
paolod
Only Title

Simon Clemen's Q&A profile

  • Visual C++ warning C4273: 'MyClass::MyMethod' : inconsistent dll linkage

    Hi -   I'm cleaning up some code and would like some feedback on link warning C4273. Here's the scenario... I'm referencing unmanaged code in a C# win app via a C++/CLI wrapper. The wrapper wraps an unmanaged Win32 dll. So I have 3 apps - MyCSForm.exe, ManagedWrapper.dll, unmanaged.dll (and .lib). The warning occurs in the ManagedWrapper.cpp code as follows: ManagedWrapper.hpp class __declspec(dllexport) ManagedWrapperClass{ public:   bool myMethod(); } ManagedWrapper.cpp bool ManagedWrapperClass::myMethod() { /*call unmanaged code */ };  // C4273 warning here. The unmanaged.dll also has its classes declared with __declspec(dllexport). I reference the unmanaged.lib in my linker. The ManagedWrapper.dll is inclu ...Show All

  • Visual Studio 2008 (Pre-release) Debugging a web browser application that uses a web service

    Is it possible to debug a web browser application which is using a web service When I debug such application, VS loads it from the local file system, e.g. C:\Projects\MyApplication\bin\Debug\MyApplication.xbap. As a result, I am getting a legitimate System.Net.WebPermission exeption when the application is trying to call the web service e.g. with the URI= http://myserver/myservice/myservice.asmx . Everything is running on the same machine (myserver=localhost). Thanks, Alex. I am sorry, but it did not work. I tried to play with the Location URL but still getting the exception no matter what I enter. Is there a way to tell that VS is actually reading the setting, for example by looking at the address ...Show All

  • Internet Explorer Development Creating tables on the fly with DOM methods... are special table methods required?

    I haven't been able to find a whole lot of documentation on this issue. I know the special methods for creating and manipulating tables in particular exist, for example thead = tableObj.createTHead(); supposing the existence of a table object reference tableObj. How do these special methods compare to the generic var tbl = document.createElement("table"); var tbody = document.createElement("tbody"); tbl.appendChild(tbody); ... etc Apparently both sets of methods belong to the DOM Level 1 specification, so is there a more 'right' way to do things And has this issue been discussed or documented online somewhere I must not have found yet Thanks very much for your help. ...Show All

  • Windows Forms Accelerator in ContextmenuStrip

    Hello! Do anyone know how it is possible to show the accelerator of my context menus with a right button click Accelerators were shown when I press the "context-menus -key" (Apps) or Shift + F10 but not when I press right mous button. Is that possible Thanks Jerry This looks like a bug to me, you might want to report it at Product Feedback . I tinkered with WM_UPDATEUISTATE but didn't get anywhere. One workaround is to turn off this miserable feature. Control Panel + Display, Appearance tab, Effects, turn off "Hide underlines letters...". ...Show All

  • Smart Device Development Makecab Umlaut character problem in filename

    Hi, I wrote a project which will download a cab file from the web and extract (extract utility) and replace the files on the local machine. So before replacing the files I make a cab of the old files with makecab utility. For this i use a ddf file and makecab with the option /f and the ddf filename. The problem is that whenever the file name contains any umlaut character the makecab displays an error file cannot be found. But if i save ddf file again in ASCII format and then try making a cab it works. But i cannot do this as certain characters cannot be represented in ASCII and i cannot avoid the umlauts as I am working in germany, where umlauts are comman. Is there any solution to it. The project is in VB.Net 2005. Thanks ...Show All

  • Software Development for Windows Vista One of multiple events handled by EventDrivenActivity: possible?

    Hi, I have a state machine that in a certain state S1 should react to one of the several different events E1, E2, E3, E4 and then execute the same single CallExternalMethodActivity followed by a single SetStateActivity. In other words, I need an equivalent of EventDrivenActivity without the restriction of having only one HandleExternalEventActivity as the first child activity. Ideally, there would exist a HandleExternalEvent s Activity (note the plural) that would behave just like HandleExternalEventActivity except that it would "wait" for more than one event. More precisely, this imaginary activity would "continue execution" as soon as any one of the events would be raised, not all of them. Can I simulate this behavior ...Show All

  • .NET Development Unregistered custom channel still being used!

    I created a custom client formatter sink to pass some information. I can create it as follows: BinaryClientFormatterSinkProvider binarySink = new BinaryClientFormatterSinkProvider(); ClientSecuritySinkProvider secureSink = new ClientSecuritySinkProvider(username, password); secureSink.Next = binarySink; _tcpChannel = new TcpClientChannel("tcp", secureSink); ChannelServices.RegisterChannel(_tcpChannel); Activator.GetObject(...) This works the first time. However, if I call: ChannelServices.UnregisterChannel(_tcpChannel) and repeat the procedure with a different username and password, it still uses the first channel I registered (even though it has been unregistered!) I verified that the new channel is being crea ...Show All

  • Community Chat Lets talk about Microsoft Certified Architect Program

    I just wanted to start talking about this because its my dream to get this big certification.  I just wanted to know between all to make a track to get there. How long does it take to get Certified for the Microsoft Architech Program Happy New Year and Good Luck on your new job! ...Show All

  • Visual Studio 2008 (Pre-release) Strange Popup Behaviour

    Hi, I am experiencing a very strange error with the Popup control. I developed a control that inherits from a Popup to show error information.  This was a few months ago.  The problem is that every now and then, the control just doesn't show.  The problem is that sometimes, the popup will fail to show, but when I restart my computer, run precisely the same scenario, the popup works fine again. This is very worrisome as I can't rely on a control that on rare occations just stops working.  I really can't tell you how to re-create the problem as I don't know how and why this happens.  I would like to know if anyone has experienced this same problem with the Popup.  And it is with the RTM version of ...Show All

  • Visual Studio Team System Approval check-inpolicy

    Hello! Developer works on x number of filesand is ready to checkin. Before he checks it in, an approver has to approve his changes. He is not actually going through each and every file and checking for changes, but kind of getting an overview what has been changed. Once the approval is obtained, developer can checkin his changes. I tried enabling the check-in notes, but this is only on the developer's end where it's just enough to enter comments in the code-reviewr section. How can we acheive this in tfs without having to use the shelving\unshelving process Thanks! You could create a "code review" work item type, where only certain people are allowed to Resolve it, and then write ...Show All

  • SQL Server SSIS - SQL Server Developer to Express Edition

    Hi, Does anyone know if it is possible to use SQL Server Developer Edition to produce SSIS packages that will operate on a remote SQL Server Express Edition database The situation is such that it is easiest to install a SQL Server Express Edition database on a remote server (for use within a company intranet) due to server availability and licensing restrictions. It would be great to be able to do Excel round trips with the data though - would it be possible to use SQL Server Developer Edition to do this on another computer, and have it update the data in the Express database Thank you for your time. Kind Regards, Ray Muirhead SQL Server Express Edition does not contain SSIS, and you cannot execute SSI ...Show All

  • Visual Studio Express Editions Matrix implementation problem

    Hi everyone, I am implementing a matrix program which create matrix according to the values on a file and write to or read from files the values of the matrix. However, since I am not able to compile my program, I would like to ask you that whether my class si logically correct and whether it gives a compile time error or not. If there is unexpeted situations in my code, would you please help e to fix them class SymmetricMatrix { public: int index1; int index2; int **matrices; /* * Constructor that initializes an empty matrix with a given size. */ SymmetricMatrix(const int matrixSize){ size = matrixSize; matrices = new int*[size]; for(int a = 0; a < size; a++) matrices = new int[size]; // assigni ...Show All

  • Software Development for Windows Vista mc.exe can't find nlsdl.dll on W2K3 SP1

    Mc.exe from July 2006 CTP requires nlsdl.dll now ( DownlevelLocaleNameToLCID function). This call requires "Microsoft NLS Downlevel Data Mapping APIs on Windows XP (SP2 or later) or Windows Vista" according to specification ( http://msdn.microsoft.com/library/default.asp url=/library/en-us/intl/nls_DownlevelLocaleNameToLCID.asp ). The link says that I can download the required header file and DLL from the " MSDN Download and Code Center ", but I can't find this stuff there. Where I can find nlsdl.dll for my Windows Server 2003 R2 (x86) Regards, Sergey. I had a horrible time finding that. Its at this URL: http://www.microsoft.com/downloads/details.aspx FamilyID=eb72cda0-834e-4c35-9419-ff14bc349c9d& ...Show All

  • Visual Studio Questions about DSL Integration Powertoy

    Hi All, I have some questions about this new power toy that is just released. I'm a little bit confused with the functionality and the real "power" of this toy. It is about accessing a model of DSL from another DSL. Does this really mean I can access my Language1 from my Language2 Can I reference them wherever I want as long as I have the DIS How about if they are in different company namespace (just curious) Because in the sample that came with the installation, I saw nothing like communicating with other DSL (please correct me if I'm wrong). And about the application of this integration, can I put two different DSL designers in one time debugging Yes, later on with this ability I want to deploy "one" package of two D ...Show All

  • .NET Development Problem with random selection from database.

    Hi, I am tryng to develop and examportal, in which i have to select questions randomly from the database table [Questions]. I have the question in Question table. And have to join it with the topic table and then make thye both enter in the testdetails table. I have the problem in querng the random qns... Its very urgent.. Can anyone plz help me in the current issue... Thanks ...Show All

©2008 Software Development Network