srem's Q&A profile
Visual C++ Visual C++/CLI
Hi all.Is it fine if i use visual C# .net tutorials and resources for creating windows forms apps and incorparate the code into C++/CLI .net I mean, C++/CLI uses the .NET Framework also to create windows forms apps right So the only thing to change is the syntax(the "." to "::" or "->", variable declarations, conditional statements, classes etc etc) if i am correct here. Meaning whatever ever code in C# has been written e.g: to make a paint prog, i could just change the variable declarations,ways the functions are declared, and other things like that involving the language syntax, correct Help would be appreciated :D Thanks Re: eating my words - there is ...Show All
Software Development for Windows Vista New xp pro machine, MSDTC not installed or configured?
Hello everyone, I purchased a brand new shiny development machine last weekend (one of the new dual core 2 processor machines...two thumbs way up!). The operating system on the machine is XP Pro. I am coding a C# 2005 winforms application which requires MSDTC and after opening my C# project and running it I noticed that MSDTC is not installed on my new machine. I thought MSDTC was installed on every windows machine but apparently that is not correct. So when I go to component services to look at the Distributed Transaction Coordinator the "my computer" icon has a red arrow over it instead of a green arrow which makes it look like there is a problem. If I click on the "distributed transaction coordinator" folder under co ...Show All
Game Technologies: DirectX, XNA, XACT, etc. C# and Managed DirectSound reading samples from mic and writing samples to speakers
My apologies, I've seen many references to this on the web. However, I have not been able to find complete enough documentation to make it work. I would like to read raw samples from the microphone, e.g. 16-bit PCM samples. I would like to be able to read them into a byte[] buffer or short[] buffer or something like that. I would also like to be able to take a byte[] or short[] buffer of PCM samples and write them to the speakers. I'd like to be able to do this using DirectSound under C# if possible but if I need to use some API under C# that wraps some underlying dll functions, thats ok too. I just need documentation or better yet, a well documented, COMPLETE example on how its done. Oh, and one last thing, I'd like to be able to do this ...Show All
Visual Studio Express Editions Inivsible Button
Hi, Could someone tell me how to make a button that isn't seen to the user, but still can be pressed If i use button1.visible = false then you can't press it. Thanks in advance, Josh I am showing you the 'InitializeComponent' partial class first. That part is normally created automatically as you add things to your form. The Form1 code (the code the programmer normally types) is the last little part at the end. ...Show All
Visual C++ How to LPCTSTR Convert to char *
How to LPCTSTR Convert to char * thank :) In a non-UNICODE build, LPCTSTR is const char*, in a UNICODE build is const wchar_t*. Even if you want to convert from LPCTSTR to TCHAR* it's still not ok, because you want to remove the const specifier (use const_cast for that). So, why do you want to do this ...Show All
Software Development for Windows Vista CreateFileMapping gets ERROR_ACCESS_DENIED unless run as elevated administrator
Can anyone suggest why the following code (which I use from an end user application to create a memory mapped file to be shared with a service running as Local System) always fails with ERROR_ACCESS_DENIED on Windows Vista (build 5342) unless run as (elevated) administrator from an administrator userid The same code works fine on both Windows 2000 and Windows XP when run from a restricted user account. hRegistrationData = CreateFileMapping(INVALID_HANDLE_VALUE, &sa, PAGE_READWRITE, 0, REGISTRATION_DATA_SIZE, TEXT("Global\\RegistrationData")); The security descri ...Show All
.NET Development CLR and thread deadlocks
Hello, I'm hosting the CLR (.NET 2.0) in an unmanaged C++ app. The CLR is used for calling C# plugin functions through IDispatch. The C# plugins are COM visible classes and are created from the app main UI thread. They are mostly used for accessing the app through a COM primary interop assembly generated with TLBIMP.EXE. The interop between C# and the app is achieved through the default Microsoft COM wrappers. This is all working fine but I'm having a problem when the C# functions are called by the app from a worker thread. At this point the CLR attempts to interop with the app via the UI main thread which is causing a deadlock because that thread is locked while the worker thread is executing. From what I see in the call stack (b ...Show All
.NET Development Strange behavior when making remote call
I'm calling a remote server (client activated, hosted in WinForms app). A simple call without parameters (or with a simple string param) works fine. When I pass certain parameters, it crashes. Build is the remote class. This call to CreateBuildTree() works: Build prp = new Build (); prp.CreateBuildTree(); This one doesn't: Build prp = new Build (); string BuildDir = prp.GetBuildDir(); TreeNode root = new TreeNode (); root.Text = BuildDir; prp.CreateBuildTree(root, BuildDir); even when CreateBuildTree doesn't contain any code!!! public void CreateBuildTree() { } The error I get on the client side is "Server encountered an internal error. For more information, turn off customErrors i ...Show All
Visual C# Need Help in developing MS WORD like application
Dear All, I have seen applications that has tool bar, with different buttons which are same like MSWORD 2003 look like, and when click on one button suppose table button , a list popup which also same like MS WORD 2003, and there are increase and decrease indent buttons, center align, lift align or right align buttons, and its functionality is also same like MS WORD. I want to implement such functionality in my own application, but remember please don’t refer me to MS Visual Studio Tools for Office Development, show me some other way by which I could do so. Refering me to code for downloading office like application will be highly appretiated. thanks If your application edits word file t ...Show All
Visual Studio Express Editions Can I distribute Express embedded within my product?
Thanks Danny you can use SQL Express freely, for business or personal. but in regards to distribution, im not sure but do know that you can include the installer as part of a distribution. http://msdn.microsoft.com/vstudio/express/support/faq/ ill move this thread to the appropriate forum so hopefully someone can confirm/answer better ...Show All
Commerce Server Commerce Server and Visual Studio...newbie question
I have Visual Studio 2005 on my workstation and I have installed Commerce Server on the same workstation. However, when I open Visual Studio and try to create a new Commerce Server project, the templates that the Commerce Server documentation says is supposed to be there isn't there. Did I read the installation instruction wrong, or am I missing something Does the Commerce Server installation install any components for Visual Studio How exactly do the two interact Since it doesn't seem like a big deal, I'm probably not going to worry about it. Thanks for the assistance! - Scott ...Show All
Visual Studio I need Header Section of the Crystal Report only on the first page
I need Header Section of the Crystal Report only on the first page, in my application i print company name and some such information in the header but there is no need of that info on the rest pages where i have detail information of the invoice. Try adding the content to the Report Header section . The Report Header is only displayed once, at the very beginning of a report. You can use it to add a cover page, page header or other one time information to the very first page in a report. - Dave ...Show All
SQL Server UNIQUE/PRIMARY KEY confusion.
I wrote this stored procedure and it works fine, it seems. The questions I have are as follows: (1) What is the difference between PRIMARY KEY and UNIQUE. They seem to pertain to the same behavior. When I used only UNIQUE as qualifier I did not see that the column was marked as primary in the SQL Management Studio. What I need is for a column to be unique in the sense that it would not allow duplicate values and it must have an INDEX on it. I need it to be descending . (2) Did I do it right or there are aspects in here I do not quite see set ANSI_NULLS ON set QUOTED_IDENTIFIER OFF GO ALTER PROCEDURE [dbo].[CreateTableDailyClose] @symbol varchar (10) = null AS BEGIN SET NOCOUNT ON; DECLARE @SQL VARCHAR(500) SET @SQL = 'CREATE TABLE dbo. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Only one simultaneous render target on XBox 360?
Just to clarify, is there really only one simultaneous render target available on the XBox 360, or is this just a limitation of the first version of XNA It just seems odd that only one will be supported on the XBox 360, while my older ATi Radeon 9800 supports four... XNA GSE version 1 only supports one render target on Xbox 360. As noted, this is due to the complexities of Xbox 360's EDRAM. We have some ideas on how to support more than one simultaneous render target in the future but it requires a bit of work (which we felt was less important than other work we did for v1). Paul ...Show All
Windows Live Developer Forums Any way to use VE with VB or C#
I'm trying to get VE to display on a form and control it programmatically. Is there a way to do this, or do I have to use the webbrowser control and feed it a custom page You can find an example of this over on ViaVirtualEarth.com ...Show All
