jeffers's Q&A profile
.NET Development a question about dialog message in 64 bit machine
hi, all We are using C# with the Extensible Dialog to make our own dialog. It makes fine in 32 bit machine. The problem is, I can catch the dialog Notify message, when I convert the lParam to OFNotify IntPtr ipNotify = new IntPtr(lParam); OfNotify ofNot = (OfNotify)Marshal.PtrToStructure(ipNotify, typeof(OfNotify)); UInt16 code = ofNot.code; in 64 bit machine, code is always zero. I tried two different structure for OfNotify structure [StructLayout(LayoutKind.Explicit)] internal struct OfNotify_1 { [FieldOffset(0)] public NMHDR hdr; [FieldOffset(12)] public IntPtr ipOfn; [FieldOffset(16)] public IntPtr ipFile; }; /// <summary> /// Part of the notification message ...Show All
Visual C# Help with File Extensions Lookup
Hey all I need some help with file extensions. I want to be able determine which program uses an extension. For example, if I put in .xls, I want it to tell me "Microsoft Excel". Or if I put in .doc, "Microsoft Word". I know Windows Explorer knows which program uses which extension based off the registry. However, I don't know if .Net allows you to get there. If anyone can help me with this in C# or the CLR library I need, please post! Thanks in advance, Nitwit I did find this link http://www.pinvoke.net/default.aspx/shell32.FindExecutable Check it out to see if i'm off base here. ...Show All
Smart Device Development Compact framework 1.1
Hi, I'm trying to spin off a new process by doing something like this: ProcessStartInfo s = new ProcessStartInfo(ExeName); s.Arguements = CmdLine; Process.Start(s); I have included the proper using directives that msdn said, and the types are fine in a windows enviroment, but when I use it on Compact Framework 1.1 it isn't recognized, is there something similar I can use to create a new thread, I cannot update this device to CF 2.0 I have this code working in CF 1.0: [ DllImport ( "coredll.Dll" )] private static extern int CreateProcess( string strImageName, string strCmdLine, IntPtr pProcessAttributes, IntPtr pThreadAttributes, int bInheritsHandle, int dwCreationFlags, IntPtr pEnvironm ...Show All
Software Development for Windows Vista Writing to Global Shared memory from an Application in Vista.
Hi all, Global shared memory is created by a service which is used by my user mode application to communicate with the service through global mutexes and events. This as of now works well in Vista RC1. 1) Are there any restrictions that an application should not write to global shared memory already created by service This application does not has any elevated privileges. 2) Can application created global named objects like event and mutex Again the application is running under a standard user privilege and not as admin. 3) Can a 32bit application on a 64bit machine get interfaces to a 64bit Local server COM object Is there any special processing required in the 32bit app or in the 64bit local server COM object. Regards, ...Show All
Visual Studio Express Editions Can't download from microsoft also
I ve been having a similar challenge. I can not download from microsoft. I have comcast and have spoke with them they say they are not blocking my modem and that it is a microsoft problem. I have three PC's in my home and none of them can download from microsoft. They all have valid windows XP installed. I am able to get auto updates, and when XP is reinstalled onto my pc its goes through the validation just fine. I get a can not display the webpage every time i try and download something. I am not able to even open the validation link pages to run the validation checker tool. I have XP pro and Explorer 7 which i have made sure that all the active X options are enablesd and that the enable third party extentions in the ad ...Show All
SQL Server Logging MDX queries in AS 2005.
Hi, I was using the connection string property DBPROP_MSMD_LOG_FILE for getting MDX queries in a log file in AS 2000. But, it looks like this property has been dropped in AS 2005. Is there any alternate approach for achieving the same functionality in AS 2005 programatically Thanks in advance, Santosh. Hi Edward, Thanks for your prompt reply. Is there any C++ equivalent of above code I am using the Enumerator object for accessing ODBO interfaces. Any pointers how i can achieve this using template objects Thanks, Santosh ...Show All
Software Development for Windows Vista IMAPIv2 using Visual Studio 2003
Is it possible to build IMAPIv2 clients using Visual Studio 2003 To a degree, I guess this is the same as asking whether the Vista version of the platform sdk is usable from Visual Studio 2003. I encounter problems almost immediately, when trying to just #include <atlBase.h> (WinSock2.h related errors which tells me I am quickly going onto a path that I do not want to chase down :-) ) The platform selection is not under my control (I would rather be on VS2005 anyway) - but they need to do some media creation on Vista. If this is not officially supported - is there anyone out there doing it anyway TIA Hi foobarX, We very rarely use Visual Studio interna ...Show All
Visual Studio Express Editions Looking For Basic Help
Right, so I am very knew to visual basic and i see that the new express edition has lots of wonderful tools. My problem is, I have no clue what some of the tools even do! Some basic code would be nice to know as on how to operate them, etc. If there is a place I could find this information, that would be extremely helpful. The 'help' within the program SUCKS and is no use to me at all. i can't find anything in the index or contents, etc. Please help!! There are multiple ways to learn about the .net language. One is your local library, they will typically have plenty of books for you to read. Next is the MSDN library: http://msdn2.microsoft.com/en-us/library/default.aspx Then you have these forums, (which ar ...Show All
Visual C# passing an event to a Compossite control
How I can pass an event to a compossite control Is it that you’ve got a control on your composite control (aka user control) and you want events raised by it to be also visible by the users of the user control If that is the case... you’ve got two main options, you can either make the internal control (of the user control) publicly accessible to users of the user control so that external code can register for events directly with the source... this method generally isn’t preferred as it exposes too much information. The ideal solution would be something where you create a little code stub that looks like the SelectedIndexChanged event... but is part of the parent control and when adding/removing even ...Show All
SQL Server SQL Server Load Balancing and Load sharing for larger Data Access..
Hello friends, I am currently working on a project which has a few tables containing more than a lac rows.. and in few queries there is problem to display in huge amounts on aspx pages.. I just get to know that load balancing and load sharing can improve performance to fetch the data... can anyone tell me how is load blanacing/ load sharing can implemented in sql server 2000/2005 thank you.. ...Show All
SQL Server enumerating Foreach Loop from rowset
Please let me know if I am on the right track here. I have an Execute SQL Task that selects multiple rows from an OLE DB connection, each row containing 3 columns (data types = string, Int32, Int32). In this task ResultSet = "Full result set" and Result Set > Result Name = 0, Variable Name = [User::viewInfo] which is a user variable with Data Type = Object. I want to use a Foreach Loop Container to enumerate over the result set rows that are contained in the [User::viewInfo] variable described above. For each resultset row I want to breakout the 3 column values and assign them to 3 corresponding variables that can be referenced in a Data Flow in the Foreach Loop. Current settings for the Foreach Loop Container: Collec ...Show All
SQL Server Question in sercive broker
i'm have db 2005 and enable sevice broker and make two stored procedure one to send massage to queue and second recive massage from queue i'm don't know how the second procedure call i'm just call first procedure please tell me how You can configure second sp to activate when there is a message in the queue CREATE QUEUE que1 WITH STATUS= ON, ACTIVATION ( PROCEDURE_NAME = usp_1, MAX_QUEUE_READERS = 5, EXECUTE AS 'dbo' ) ; Above statment will creaet a queue and it usp_1 sp will be activated when there is a message in a queue ...Show All
Visual FoxPro Visual Foxpro 9 Compiler Bug
I have found a bug with the VFP 9 compiler and I wonder if anyone knows if there is a fix with this: The following code is missing a ")" just before the "= 1900" at the end: UPDATE (p_datapath + (aLpfTables[iTableCount])); SET &cField = CTOT(LEFT(DTOC(TTOD(&cField)),6) + "1900") ; WHERE YEAR(TTOD((&cField)) = 1900 When I compile the code using the menu Program/Compile, VFP tells me 0 Compilation errors. However, when I attempt to run the code, I get an error message "Function name is missing )." The compiler should be able to detect the missing ")". VFP 7, which I was using before moving to version 9, was able to do this. Anyone aware about this and any idea about ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Forcing GraphicsDevice creation before Game.Run
In order to incorporate Xna into an existing engine without a lot of ugly hacks, I need to force the GraphicsDevice to be initialised before the program loop starts (Game.Run). Can this be done Assuming this isn't possible (as seems likely), I'd need to ditch Game and handle device creation myself. This looks straight forward enough, except that it requires a handle to a window. This is no problem in windows, but what about on the xbox 360 Is there some sort of factory available that returns a GameWindow implementation for the platform it's running on Has anyone manually created a graphicsdevice on the 360 Michael Hansen wrote: can you get is to work on xbox can you please post a sample ...Show All
Visual C# probem with generics
Hi, I've written the the code below: static public void Test<T>(T arg) { write(arg); } static public void write( char c) { Console .WriteLine( "char" ); } static public void write( int c) { Console .WriteLine( "int" ); } It should be possible to write like this: Test('c'); or Test(10) and the appropiate write methods should be called. When I try to compile it I get two errors: Error 1 The best overloaded method match for 'tester.Program.write(char)' has some invalid arguments. Error 2 Argument '1': cannot convert from 'T' to 'char'. Is there another way to make the templated method call the appropiate methods. It seems to me that writing some ...Show All
