lagu2653's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Please Add Non-Generic DrawUserPrimitives and DrawIndexedUserPrimitives methods.
I posted this request in the Suggestion tool as well. Btw- where is the link to actually view the contents of the Bug reports, and Suggestions You'd think that would be handy from the connect.microsoft.com site, but I can't find it. Add the method: Device.DrawUserPrimitives(Type vertexType, PrimitiveType type, int count, Array vertexData); and a similar non-generic method for Indexed primitives. I have a rendering system that captures rendering calls, and retains the call information. Later on, it sorts all of the calls in order to minimize state changes before execution. This is a very commen scenario. IT IS VERY DIFFICULT to call generic methods (in a generic fashion) when you only know the vertex type, and have a un-typed array. For ...Show All
Smart Device Development What wrong in this code for smartphone work well in pocket PC
#include "common.h" #include "MYappext.h" #include "MYContactsProvider.h" extern LONG g_cRefDLL; extern HINSTANCE g_hinstDLL; UINT cmdCtxCustom = 0; UINT cmdCtxJournal = 0; UINT cmdCtxSales = 0; UINT cmdCtxFax = 0; UINT cmdCtxAdd = 0; UINT curCtxCmd = 0; const int WM_CUSTOM_FLDS = 0x0415; const int WM_JOURNAL_FLDS = 0x0416; const int WM_SHOW_SALES = 0x0407; const int WM_FAX = 0x0431; const int WM_EDIT_CONTACT_EXT = 0x0408; ContactsContextMenu::ContactsContextMenu() { MessageBox(0, L " ContactsContextMenu " , L " Constructor " , 0); m_cRef = 0; m_punkSite = NULL; ++g_cRefDLL; ...Show All
Visual Studio Tools for Office Catastrophic Failure with Outlook Redemption SafeContactItem object
Hi all, My current project is an enterprise application which involves integration with outlook 2003. For this purpose I used C# and MS...NET framework 2003, outlook object model, CDO and Redemption.dll to avoid any popup. Am facing a memory leak/Catastrophic failure whenever I run these instructions of my code on the server where exchange server and outlook are installed. // iterating on some contact folder …in a loop ………………………………………………………. Outlook.ContactItem foundContact = (Outlook.ContactItem)foundContactFolder.Items[foundIndex]; SafeContactItem safeFirmContact = new Redemption.SafeContactItem(); safeFirmContact.Item = foundContact; string contactEmailAddress = safeFirmContact.Email1Address; // ge ...Show All
Visual C++ Converting Hanlde to string
hello, i'm doing some key hooks and I need to convert the HWND or Handle types to string in C. is this possible as I know this types are simple integers, I'm converting it without any problem with delphi, but I'm too week in C :( any help would be appreciated :) Would that be C or C++ In the former case, use snprintf, such as char buf[9] = {0}; _snprintf(buf, sizeof(buf), "%p", someHandle); Print the buffer to screen by use of printf. For C++, you can use the stream classes, such as std::ostringstream str; str << std::uppercase << std::setw(8) << std::setfill('0') << std::hex << (unsigned long)someHandle; Print the buffer to screen by use of std::cout << str.str( ...Show All
Visual Studio sandcastle and frame
Pls not use frame in index.html I'm trying to copy index.html in a content page and i can't for frameset. So i replicate my master adding a frame for header/menu but the horizontal menu doesn't open over second frame! Another suggest: change js: window.parent.frames[index] with window.parent.frames["name"] for easy development. Using server side include, css and javascript I'm interested also in modifying window.parent.frames[xx].document.URL if i'm not using frames but div. What's the right expression Thx ...Show All
SQL Server prolem with "create login from asymmetric key"
Greetings... I'm trying to create assembly with "PERMISSION_SET = UNSAFE". For that I've signed assembly's .dll and installed root certificate to “Trusted Root Certificate Authority.”: http://www.sqljunkies.com/WebLog/ktegels/articles/SigningSQLCLRAssemblies.aspx now I'm trying to create login from asymmetric key: USE master GO CREATE ASYMMETRIC KEY SQLCLRTestKey FROM EXECUTABLE FILE = 'C:\Documents and Settings\All Users\Documents\hunter\StoredProcedures.dll' CREATE LOGIN SQLCLRTestLogin FROM ASYMMETRIC KEY SQLCLRTestKey but I'm receiving error: "Cannot find the asymmetric key 'SQLCLRTestKey', because it does not exist or you do not have permission." What's wrong Best regards... ...Show All
Windows Forms are smart client apps with multiple .dll versions possible?
Say I have a deployment of 10 clients using a smart client app. They are all running on version 1.1 of whatever.dll which was downloaded from server. Then say I add some additional functionality and deploy version 1.2 of whatever.dll to the server. However, I only want 2 of the clients to get the new .dll so they can test it. I want the rest to continue using the older version until I do "something". Is this type of thing even possible If so, how would I get the rest of the clients to get the new .dll once i was confident it was ready to go. Please don't remark on how this is not the way to develop/test/deploy software through the dev lifecycle :) I know it's not. I just want to know if this sort of architecture is poss ...Show All
Windows Forms Transfering info with Class file
I have 2 forms Form1.h URL.h I am trying to take the information from "txtURL" on "URL.h" and place it into "wmp->URL" on "Form1.h" i was told i have to use a Class file as information cannot be transfered from Form to Form. So i made a class file "URLC.h" the code in it is //////////////// #pragma once #include "Form1.h" #include "URL.h" namespace M12; ref class URLC { public: URLC(void); int URL; }; \\\\\\\\\\\\\\\ Note: the \\\\\ and ///// are not part of the code, its to show start to finish. i was told that you decalse strings with "int stringname;" so i use int URL; How can i place the info into URLC and then have Form1.h read it when URL.h is clo ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Microsoft.Xna.Framework.Input.Keyboard
Hiya Everyone, Any advice on the following would be greatly appreciated. I’ve developed a very basic static KeyboardHandler class, for the sole purpose of generating OnKeyDown events whenever some keys are being pressed. The class has a member function called Update, which is called each time the Game.Update() member function is called i.e. it is called each time the game components are being updated. The KeyboardHandler.Update() queries the KeyboardState to determine which keys have been pressed, and raises an event for each of the keys returned by the GetPressedKeys() method I’ve noticed though that the following occurs: 1) The Keyboard.GetState().GetPressedKeys() is returning mouse ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Content Manager for DrawableGameComponent
I like the new DrawableGameComponent. When it comes to drawing it is easy to use, because the GraphicsDevice is supplied as a member of the class. However, for content loading it is not so clear. I can do devious things to get hold of the content manager for the parent game, but I'm wondering if this is the best thing to do, or whether you would reccommend that components have their own content manger. That could make sense. It really depends on your game, and on what the component is doing. As Eli says, if you want to cache data then you will want to be sharing a single ContentManager between all your components. Exposing it as a service could be a good way to do that. But on the other hand, it's possible that you never h ...Show All
Windows Forms How to read SelectedValue from Multiple ListBox
Hi all, I have a problem when reading from a multiple selectbox. I'm using a foreach loop that shows a message box for each selected item. Well, I get a message box for each selected item, but not with the correct value. Only the first selected item's value get displayed in the message box This is my code; foreach ( DataRowView dr in listBox1.SelectedItems) { string id = listBox1.SelectedValue.ToString(); MessageBox .Show(id); } What do I wrong First sorry for posting in the wrong forum, and thanks for your answers. But now I have searched in the WinForms and there was a same thread like this one. I've my answer now, Here is my code for other peopl ...Show All
Windows Forms Using global variables to keep original items in a listbox in C#??
Newbie help needed. I want to be able able to reset the original list of items in a ListBox, after a user clicks on a button. What is the recommended way to do this I am defining a global static ListBox[] InitialListBoxes; and have tried to initialize this array within the constructor, after InitializeComponent(); like so LInitialListBoxes = {this.ControllerBoardLB, this.IntegratedIOBoardLB, this.AnalogIOModuleLB, this.DigitalIOModuleLB, this.CommsModuleLB}; but I am getting syntax errors indicating that a semicolon is expected after each element. Looks like I am doing something fundamentally wrong here, which I cannot figure out. What is the process of declaring a global array variable on ...Show All
SQL Server Compare Dates and fail job if no match
This is probably a problem with a pretty simple solution but i can't find the right control/data flow item to handle it Scenario. I determine the database date for my source data for a set of ETL jobs via a piece of SQL - this gets passed to a master package variable which is subsequently to be used as the "Load date" of the resulting child package ETL routines. However I only want the packages to run if the LoadDate has either not been run before or is the next one in the DW sequence. To check for this, In my data warehouse I also have a table called Import_Registry where the date of each upload is stored at the end of the daily ETL routines. So I can obtain the potential NextUpload date via this bit of SQL script. S ...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 new lines
in my code i want to add text to a richtextbox and i want there to be one line then and line space then another line. how do i do this Hi, Two other ways to do this>> 1) Use & vbCrLf E.g.>> textbox1.text="Hello" & vbCrLf & "there!!" or 2) At the top of your codewindow add>> Imports Microsoft.VisualBasic.ControlChars then use>> textbox1.text="Hello" & NewLine & "there!!" for a line space>> textbox1.text="Hello" & NewLine & NewLine & "there!!" Regards, S_DS ...Show All
