chongqing's Q&A profile
Smart Device Development Printing Documents from a Windows Mobile Application
Dear ppl, Is it possible to print a text file in .NET Compact Framework from a windows mobile application HP offers this: http://www.hpdevelopersolutions.com/apdk.cfm - this is an SDK for native C/C++. If you want a managed SDK, go with Field Software's PrinterCE.NetCF SDK . ...Show All
Visual C++ Mixed mode C++/CLI idiom
In my C++/CLI components, for each component I create a ref CLR class and a C++ class, the latter which does most of the internal processing and interfaces to the C++ standard library and 3rd party libraries such as Boost. I do this so I can use C++ libraries in my CLR component, especially when the .Net framework does not offer all the facilities which 3rd party C++ libraries have. In order to allow the C++ class to access the properties, methods, and events of the corresponding CLR class I have a pointer to the C++ class as a private member of my CLR class and dynamically create an object of the C++ class, passing a pointer ( ^ ) to the CLR object to the constructor of the C++ class, and assign the resulting C++ object to the pointer in ...Show All
Visual Studio VS 2005 debug.print No longer working
I have been using debug.print in a VB project in Visual Studio 2005. It has been printing to the Immediate window just fine. I then installed IE7.0, and now nothing shows up in my Immediate window. It's like the functionality broke. I can't find any settings for this. Do you have any ideas I have tried a new project, added a button, put in a debug.print ("HELLO") statement, and it never shows up in the immediate window. I have also tried re-installing VS2005. Thanks for any ideas! I'm going to try and reproduce this problem. Can you tell me what your OS is, and are you using the release version of IE7.0 (as opposed to any of the RCs or a beta) John ...Show All
.NET Development System.Runtime.InteropServices.COMException (0x80040154)
Hi guys, I received error on my window C# application, what is the best way to troubleshoot this I guess I would have to find out which COM object is causing this. Is there a way to use the given CLSID to find out the COM object 6:25:46 AM: Error: System.Runtime.InteropServices.COMException (0x80040154): COM object with CLSID {CD000001-8B95-11D1-82DB-00C04FB1625D} is either not valid or not registered. at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Web.Mail.CdoSysHelper.Send(MailMessage message) at System.Web.Mail.SmtpMail.Send(MailMessage message) at LSMFiles.Mail.SendMail(String subject, String messageText, String from, String to, S ...Show All
Visual Studio 2008 (Pre-release) Disable ContextMenu MenuItems?
Hi I Want to know, how to disable the ContextMenu MenuItems right now i am using ContextMenuOpening Event. In this event i am getting the reference of the contextmenu and using this i am getting the reference of the MenuItem then setting IsEnabled to false. Is it right way or anyother way to do this . Thanks & Regards, Sundaraguru GM your approach will work fine... if you are disabling the whole context menu then you could set the isenabled property on the context menu itself. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Jerky sprite movement, too much keyboard sampling?
Hi all, A question if i may, i have installed XNA and all the necessary gubbins, and have walked through the tutorial on learnxna.com I am just trying out the basics at the moment and am attempting to get a user controlled sprite move across the bottom of the screen, on the x axis, responding to left and right keys. This works fine. When a space bar press is detected, a projectile object is created, in the same place as the bottom sprite and is added to a class scoped arraylist (for storing projectile objects). In the update method, the array list is looped and any projectiles created have their position updated (so they move up they axis). The array list is looped and draw in the relevant positions in the draw method. This rea ...Show All
Visual Studio Unable to debug: The binding handle is invalid
When i try to debug a C# application I get this error: Error while trying to run project: unable to start debugging the binding handle is invalid What can i do Thanks for your answers I have the same problem and no solution for now. :( July Beta 2 VS 2005 Profesional. ...Show All
Windows Forms Force to show scroll bars on a ScrollableControl
Hello. If I draw a shape (say rectangle) outside the client area of the ScrollableControl, how can I force the latter to show scroll bars so the user could view the drawn shape Thank you beforehand, Mikhail. Here is a peace of code from the class inherited from the ScrollableControl: public MyClass() { AutoScroll = true; VScroll = true; HScroll = true; AutoScrollMinSize = ClientRectangle.Size; .... } void DrawShape() { Graphics g = CreateGraphics(); g.DrawRectangle(new Pen(Color.Black), new Rectangle(1000,1000,100,100)); Invalidate(); } when I call DrawShape function it does not work , the shape is outside the client area and scroll bars do not appear. ...Show All
Visual Basic Adding a line break to a message recieved over TCP in a text box
I have: TextBox2.Text = TextBox2.Text + returndata + ControlChars.CrLf Which presumably adds a line break at the end of the message. Sadly not. All it adds is a space. The message recieved was obtained as ASCII over TCP from a Python chat server me and a friend are working on. How will I get a line break at the end of returndata (the message obtained from the server) I've just tried it and seems to work fine for me: Me.Textbox.Text = Me.Textbox.Text + returndata + Environment.NewLine maybe unacceptable but try adding a returndata.ToString() to see if that helps. When I tried it, it puts the message on a new line everytime ...Show All
Visual Studio Express Editions I got this message
Server Error in '/WebSite2' Application. Go to the directory 2x and run the program within it aspnet_regiis -lv If the word root is not by the 2x...then you need to set the level to be .Net 2 by doing aspnet_regiis -i Which will have asp .net use version 2 of .Net. If it root is by v2...this does not help you. ...Show All
Visual Studio Express Editions CType Trouble
I am trying to make a small amount of code save me from having to manually write everything out. What I have is this so far Dim Box As CheckBox = CType (sender, CheckBox) Dim W As Integer = 1 For W = 1 To W = 7 If CType ( Me .Controls( "rC" & Box.Name.Substring(W)), CheckBox).Checked = True Then CType ( Me .Controls( "rW" & Box.Name.Substring(W)), CheckBox).Checked = False ElseIf CType ( Me .Controls( "rW" & Box.Name.Substring(W)), CheckBox).Checked = True Then CType ( Me .Controls( "rC" & Box.Name.Substring(W)), CheckBox).Checked = False End If Next W I want it to check if rW1 is checked, and if it ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Direct3D 9 -> Strange problem with vertical blank
Hi. First of all, Happy New Year to all of you :) I am using Direct3D 9 to write a part of my company's software to output uncompressed HD contents by drawing 2 triangles and putting the image frames of the HD clip to a texture, and put the texture on the triangles ( well known strategy for showing 2D graphics on Direct3D, I think all of you know this ). The clip I used for testing is 1080i 30fps. Because the monitor refresh rate is 60 and D3DPRESENT_INTERVAL_DEFAULT gives 60 fps, I used D3DPRESENT_INTERVAL_TWO, which should give 30 fps. Graphics card I used is nVidia Quadro FX 3000 and Direct3D9. Using my company's modified timing function, I found out that for the first 5 frames, the time between frames are not 33.33 ms as expecte ...Show All
Visual Studio 2008 (Pre-release) How to put a TreeView in a ComboBox?
Out of curiosity, the other night I tried to put a TreeView in the dropdown of a ComboBox. I wanted to have the item selection mechanism be hierarchical, and whatever node in the tree you select would become the ComboBox's SelectedValue. I couldn't do it in the span of 2 hours. :( I would have thought that such a thing would be simple in WPF since its composite-based approach to UI construction. Here's what I tried: 1) Replace the Combo's ItemsPanel with a custom panel. The custom panel would create a TreeView and display the Combo's Items in the tree. I figured out that you have to set the panel's IsItemsHost to false otherwise an exception is thrown saying that you can't add items to a panel that is an items host. But, then I go ...Show All
Smart Device Development strange problems,platform manager server failed
when I compile apps using palm-size pc 1.2 sdk,I always saw a error dialogbox that stated "platform manager server failed".I just reinstall the sdk and several times later it went wrong again.what happend I am sorry this forum is meant for questions related to Device Emulator. Moving this to Smart Devices General where it has got better chances of being answered. -Thanks, Mohit ...Show All
Visual Studio Can it be done : Custom colors for bars in bar chart ?
Is it possible to have different colors for bars in charts. I am wondering if there can be formula applied for each (x,y) values We are using Reporting services in local mode. If it cannot be done, it appears we have to purchase separate charting components. Thanks The link to the sample report in the blog is broken. Is there any other place I can view the sample report Thanks ...Show All
