devmonkey's Q&A profile
Visual C++ LPSTR from a std::string
Hello, I want to get a LPSTR out of a string that I have created - this is to be used in a "createprocess" function which apparently dosn't like to use LPCSTR. The code that I have looks like a long hand way of doing it. This does seem to work but is there a better way of doing this string spawnCommand = somestring; char spawnChar[1000]; for(int i=0;i<spawnCommand.size();i++){ spawnChar =spawnCommand.at(i); } spawnChar[spawnComma ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Textures flickering
Hi, I have a scene with some sprites in it. I am using alpha blending on the sprites for transparency and everything is working pretty well however whenever the sprites are more than a certain distance from the camera the textures start to flicker (different pixels vary in intensity). I have tried using two different forms of texture loading: myTexture = ResourceCache.GetGlobalInstance().CreateTextureFromFile(dev, "..\\..\\Textures\\myTex ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Meshes intersection
There is one method in DirectX API to try intersection between meshes . All functions I see are for mesh and ray combination. If not I'd like to know one good method. Mesh to Mesh intersection is expensive - you have to compare every triangle in one with every triangle in the other. Typically each mesh will have a bounding volume (sphere, box, axis aligned box) and firstly you check those. Once you have found c ...Show All
Visual C++ Length cannot be less than zero. Parameter name: length
I am getting this error "Length cannot be less than Zero". After this error occured the application stops working and this same error messages gets displayed in all the pages. If i replace the dll files again then the application starts working again. I am pasting the complete error message below ------------------------- Length cannot be less than zero. Parameter name: length Description: An unhandled exception occurred during the execut ...Show All
Software Development for Windows Vista PersistenceService in WebFarms and NLB
I implemented asmx web service that hosts workflowruntime with SqlPersistenceService. WorkfowRuntime hosts StateMachine workflows, that have eventdriven events with delay activities inside. Asmx web services are hosted in iis on multiple machines on nlb, and they all use same persistence database. My question is what will happen when workflowinstance goes idle and waits for delay activiti Is it possible that problem occurs when all web ser ...Show All
Windows Forms localization on clickOnce
Hello. I have an application that was developed with the localization feature. How can I use the ClickOnce to allow users to download the preferred language from the website I saw localization ComboBox in the ClickOnce properties, what does it do You will need to publish your application once for each language you support to a unique web location. For example: http://myserver/myapp/english http ...Show All
Visual Studio Team System TF42052: The file system on the build machine does not support access control lists
Using Workgroup configuration, with Team Foundation Build on a second computer. TFSService is established on second computer with same credentials as the TFS computer. When building on a build type, we get the following: --------------------------- Microsoft Visual Studio --------------------------- System.Web.Services.Protocols.SoapException: TF42052: The file system on the build machine does not support access control lists. Please specify ...Show All
Windows Forms Unhandled Exception in System.windows.forms.dll
hi all.... i'm programming my graduation project using C#, but i have this problem in windows forms. when i open form using ShowDialog() i get the following error message: An Unahndled Exception Occured In System.windows.forms.dll. Additional information: Object reference not set to an instance of an object. I didn't use in the form any special components just buttons and textboxes. note: when i copied the project t ...Show All
.NET Development Installing .. advpack.dll
Not sure if this is where to put this question but I can't find anything else on these forums (shrug ). I'm trying to install the 2.0 redistribution package and get an error with c:\windows\system32\advpack.dll when trying to install. Any suggestions The reason I'm looking to install it is because I have an application that requires it. Maybe I actually need something different Ugh. lol Has anyone ...Show All
.NET Development CoCreateInstance is called in VS 2005 and Multithreading, Urgent help !!!
Hello folks or guys from MS can help, My code structure like the following using VC++ : CIrDlg::OnInitDialog(){ ..... m_pWaitForMessageThread = AfxBeginThread(WaitForMessage, this ); //create a thread ..... } ClrDlg::WaitForMessage(){ AxCOM::Class2 * pObj = new AxCOM::Class2(); //AxCOM is managed component; hRes = CoCreateInstance(clsid,NULL,CLSCTX_ALL,iid, reinterpret_cast < void **>(&pObj)); ...Show All
SQL Server SQL2005: Configuring Web synchronization for merge replication
I'm trying (and failing!) to get Web synchronization for merge replication working with SQL Server Standard 2005 Sept CTP. I've created and configured a merge publication and have configured the publication for Web synchronization using the 'Configure Web Syncrhonization' wizard. I've followed all the setup instructions in the Configuring Web Synchronization article in Books Online and have tried testing that it works by accessing https://<ma ...Show All
Windows Forms DataGridView Master-Detail (Parent-Child) AddNew
Gents - I have a DataSet with a Parent / Child relation. On Form1 I have a DGV that is bound to the details (child) portion of the relation (tblInventoryTransBindingSource). I have a BindingNavigator bound to the Parent binding source (tblPurchaseOrdersBindingSource). On the form I also have a DateTimePicker for date control bound to tblPurchaseOrdersBindingSource - OrderDate. In order to create a default value of today on the Dat ...Show All
Windows Forms How can I persist a login?
I am writing an application that does not necessarily require a user to login (some features available to unauthenticated users). I want to be able to persist a couple of custom objects, like the 'User', some 'Roles', and whether or not they are authenticated. When a user starts the app, the get some screens, but must authenticate to get others. What would be the best way to persist that info. I am an ASP.NET guru ;-), but not a Wind ...Show All
Visual C# How to change the program icon?
Hi all, I would like to change the program icon for my application. Currently, it is using the default console icon. May I know how to change it Thanks Open your Windows Form's Project properties, and under Application tab you can set the Icon setting. ...Show All
Visual Studio Tools for Office .net application with an excel interface
Hi, I am converting an Excel spreadsheet used by stock traders to a .net application. I want them to give ability to set up new worksheets in the application and perform other Excel operations such as writing expressions to display new values based on values in other cells. Users basically like to calculate and display new ratios based on market values, I want to give them the ability to calculate and display whatever ratios or information th ...Show All
