Wellnow's Q&A profile
Visual J# DLL's and sockets
Hello all, I'm an experienced programmer but new to Visual Studio 2005 and J#. We have the full MSDN at work. I would like to build a DLL in J# with the following properties: 1. Capable of being loaded dynamically 2. Capable of exporting a socket connection via a function to both VS 2005 languages and other non MS stuff (specifically other flavours of C++ and Delphi). 3. Capable of talking to a Sun Java (or J#) ServerSocket in the usual Java way with serialized objects. From what I can see this looks pretty straight forward but I thought I'd ask the experts first :-) Are there any specific issues I should be careful with or is it as really as simple as it seems on the surface This would solve some serious headaches if it is possible. Than ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Content Pipeline and FX files
I noticed that on the post which Michael Klucher made on the content pipeline back in August that the FX files had importers for the Content pipeline included. I was wondering if anyone knew how it works ie does it a: simply compile the shader and create the binary shader file, which is loaded in at runtime b: Create an effect wrapper around it. By this i mean a little like a strongly typed dataset - rather than having to constantly lookup what parameters are required by a particular shader (ie worldviewproj), does it created a descendant of Effect and have properties that are set at designtime, so we know that we should never get errors from passing in values with incorrect names. I would guess that a is what will be in there, bu ...Show All
Software Development for Windows Vista Handling RecognitionResults
Hi everybody! I have the following situation: I have a simple Label where the user can write on using an InkCollector. I also have a Recognizer started to recognize the written Ink in Background-Mode. The computed results are shown below the Label just in time being available. If the user clicks on one word of the recognized text he gets the alternatives. If he chooses one out of them the alternative should replace the original recognized word. And exactly here is my problem. How can I persist the chosen alternative I know, that I'm able to Modify the TopAlternative and I can do the SetResultOnStroke to copy the (changed) RecognitionResult to the appropriate strokes-collection. But in fact this strokes-collection is just a copy of th ...Show All
Visual C++ Steps on how to code open a new file using C++/CLI in visual studio 2005
Hi! i wld like to achieve the following: after clicking on 'new' in the menustrip(in visual studio 2005), i would like a new form to be reloaded. (i need it to work the same way as how a new word doc is reloaded in Microsoft Word when one clicks on 'new'.) please teach me the steps in coding it, thanks so much! (: Hello Re: Steps on how to code open a new file using C++/CLI in visual studio 2005 Such questions are outside the scope of this forum - for the scope of the VC General forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1 For such issues please use the newsgroups at http://msdn.microsoft.com/newsgroup ...Show All
Software Development for Windows Vista SMS 2003 Admin Console Remote Control on Vista 5308?
I have the SMS 2003 Admin Console (with Service Pack 2 applied) running on Vista build 5308, but I can not remote control a client. I can connect to the site database just fine, see my collections, use the Resource Explorer and even make the initial Remote Tools connection OK via Port 2701. But when I try to actually initiate the remote control, I get an error message that states "Cannot establish a security context with the client." If I try again it prompts me for security credentials but nothing will work. I have my firewall disabled while on the domain, so that isn't an issue. LOL, I know I'm not supposed to be running Vista in production on my primary workstation, but it's running great with this being my ...Show All
Visual Studio Local Report Printing
Hi, I have created Local Reports using Report Viewer in the VS 2005. Now I need to add the printing functionality to all the reports. In some articles I have read that the printing for local reports is not possible where as in others I have read that a printing option can be given along with the Export option. If printing can be done for the Local reports then please guide me. Thanks & Regards, Shikha Do any of these printing examples apply to webforms I have only seen examples that focus on winforms. Your responses are appreciated! ...Show All
SQL Server Post Hotfix error
I am getting the following (MOM) error on 3 of my databases anytime I initiate a backup of the mdf. The database seems to backup as expected. The one thing that has recently changed is I implemented MS Hotfix 2187 on my SQl cluster over the weekend. Severity: Critical Error Status: New Source: MSSQLSERVER Name: Commit record has already been distributed. Check DBTABLE Description: Unable to expand message 17055 [-1073724769] 18264 Database backed up: Database: XX03PLUS, creation date(time): 2005/12/06(18:38:50), pages dumped: 23026, first LSN: 18761:44:1, last LSN: 18761:46:1, number of dump devices: 1, device information: (FILE=1, TYPE=DISK: {'G:\temp\ar03PLUS_fromVCforK1.bak'}). thanks in advance, Jerry ...Show All
Visual C# Static Methods And Thread Safety
could somebody please tell me, in the following static method, is it possible for a second thread to call the same method with a different input variable modway through, thereby screwing up the result thanks public static int GetString(int i) { // do some stuff with i. e.g. i = i + 100; i = i / 2 ... etc. return i; } In your example this is perfectly thread safe. Each thread in your application has its own stack, the int parameter passed into the function is a value type so it is created in each threads stack therefore two threads have different copies of this variable so will not affect eachother. You can have issues if your static method was accessing a static class fie ...Show All
Smart Device Development direct draw error
When I execute the sample code of Direct Draw Application , i get an error during execution in smartphone 5.0 Emulator,which says " Display Driver does not support a back buffer " and when i execute it on Device then it says " create Surface error ". What can be the probable reason Hi there! I have same problem emulating pocket pc, so maybe anyone solved this problem somehow Does it mean that there is no back buffer support at emulator at all And that there is no way to test programs without real ppc ...Show All
Visual Studio Express Editions The Matsui riddle (Advanced programmers only)
Sensei Matshui is now old and blind. He sits in the sun drenched courtyard of his dojo in Tokyo. He has fifty student in five rooms. 10 in each. All the students in the same room have the same name. They are itchi, ni, san , si and go. They are well disciplined and obedient. Every time Mr. Matshui receive a new batch of student he affixes the rule of the dojo on the door post of every room. The rule on the door post of the itchi's room says: only one itchi can stay in the courtyard at any given time. Itchi can/has to leave the courtyard only if it is told so or a call goes out for an other student from one of the other rooms. Although the blind sensei may call for itchi several times, no other itchi sho ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Methods to check 2D rectangle collision?
I enjoyed Win32's IntersectRect() before for this kind of work. Is there a similar method for 2D collision If you rectangles happen to be squares (or a circle if the circle goes to the edge of the texture), then you can check the distance between the two vectors, and if the distance is less than the edge length, then you have a collision. if(Vector2D.Distance(point1,point2) <= squareSize) { //Oh noes! } This is the method I was using because the 3D aspect of the bounding box scared me off. But Jim has a good point that if you keep the Z axis at zero, then it is just 2D :) ...Show All
SharePoint Products and Technologies Multi Contact Selectors
I need to add more than one contact selector to an infopath form. How do I configure these contact selector. It doesnt accept fields with the same names. I tried using different names, but the form didn't load in the sharepoint site. Thanks, Just found the solution! Once you add the contact selector to the form, and then having it configured with the required fields. You refrence the Person group to other contact selector in the form. ...Show All
SQL Server Problems with MDX and linked objects
I have some cubes that are joined as linked objects (migration of a virtual cube from AS2000). In the old setup an mdx like this was used to do a certain count: 'nonemptycrossjoin({Descendants([carnumber],[carnumber].[carnumber])},{Descendants([Group],[Group].[Group])},{Descendants([Time].[Time],[Time].[Time].[Day])},).count' This was used within a cube called Services which was part of a virtual "KPI" cube Now in SSAS2005 these are joined as a linked object. The problem now is that the count that before gave 8000 now gives about 2000000, which is understandable, since the MDX now counts across several cubes in the linked cube. Is there a way to do this count within only one of the linked cubes ...Show All
SQL Server SQL Server 2005 Trigger fires per statement or per Record
Hi In SQL Server 2005, does TRIGGER for DML fire per statement or per Record If both, can we define the way it should fires. thanks / ramanuj Once per DML statement. You need to build triggers that expect >1 row in the INSERTED and/or DELETED tables. Sometimes it takes some doing, but once complete it is really a very efficient way to write triggers, since operations happen once. It can takes some wrapping your head around though :) ...Show All
Visual Studio 2008 (Pre-release) Support for templates in WPF Deisgner?
We're building a large WPF application. In order to provide some consistency of UI, we're using a lot of <DataTemplate>s and <ControlTemplate>s, in application resource files. When I design a <Window> or a <Page>, I have to specify the appropriate template for every child control. If I attempt to use the designer on such a xaml file, it immediately starts adding properties to the actual controls themselves (Width="xxx", etc.). Is there a way to turn this behavior OFF Also, is there a way to work with the templates in the designer directly (right now, I have to edit the template xaml code manually - it would sure be a lot easier if I could use the designer). Thanks, in advance, for any help anyone provides ...Show All
