helpermonkey's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. DXGI_FORMAT_R11G11B10_FLOAT format
Hi, the DXGI_FORMAT_R11G11B10_FLOAT render target format seems to be a clear winner when it comes to HDR rendering. The question I could not find an answer in the documentation for is: is it guaranteed to support alpha blending, multi-sampling and filtering Thanks in advance, - Wolf Actually, destination alpha is something you can't do with a non-alpha-supporting format, unless you accept that the alpha will always be 1.0. You can use destination color, of course. You can use source alpha though, since the output merger stage still has access to the alpha output of the pixel shader - the alpha doesn't get "thrown away" until it's actually written to the render target. ...Show All
Visual Studio Express Editions Menu Strip and Button Actions
Im just starting with the newest versioon of VB from microsoft.com and am new to the scene. I just want simple codes to have Menu Strip items such as Help>About open a custom About Box. An the same for Buttons to open another Custom Box made with VB I was just wondering about the letter 'f' Dim f As New AboutForm f.Show() Does it have to be 'f' or can it be any letter And if it has to the the var of 'f' what does 'f' do/mean ...Show All
Visual C# Saving output for later reference
Hi! Im new to C#. I am doing a project in C# in which i have to perform functions like create users, delete users, etc. in a mail system. When i create a user, my mail system Zimbra returns back a small code for the created user. How do i save this code that has come on the console I would like to save all this info to a file btw. Here is an example : zmprov Provisioning 1. Account 2. Domain Enter choice : 1 1. Create User 2. Delete User 3. Get User 4. Get All Users Enter Choice : 1 Enter Username : forum1 Enter Domain : project.com Enter Password : ****** f65a1382-26de-4621-8582-cc8035e5c0a6 Do you want to continue : That line 'f65a1382-26de-4621-8582-cc8035e5c0a6' is the response of Zimbra (the mail system). This is what i want to sav ...Show All
Visual C# Accessing directory with different credentials
I have to get some info on files which are on another computer on my network. The problem is, I can't access this computer using my NT credentials as they are no good. I've used the DriectoryInfo class to access files located in \\Another_pc\D\Data\ How can I specify that I want to use another username/password to access this ressource Thks! you're right take a look at methods in NetApi32.dll and especially http://pinvoke.net/default.aspx/netapi32.NetUseAdd - there is sample that could help you HTH ...Show All
Visual Basic Updating a Record in a Database Based on Another Record
When a user enters a record for an existing item, I want to find the last entry in the database and update the Date out to the current time. Basically the database would contain the following fields: DateIn DateOut - hidden in form Process Item If the item doesn't already exist, the initial entry will be DateIn, Process and Item. If the item exists I want to create a new entry and update the DateOut for the last entry of item. I say last because there will be multiple entries of item. What's the best way to i dentify the last entry for item while entering the current data. Feel free to offer better process if you have one... When ever you are working with m ...Show All
Visual C++ Help: error C2065: 'XConn' : undeclared identifier
This seems elementary, but still has me stumped. This happens in VC++ 2005 Express. XConn is a public managed object in the main form (public ref class Form1) of a Windows CLR application. I'm attempting to access it in a method of another managed class. I always get that error message. The class browser appears to show it as a "variable" of Form1, but specifying the scope of XConn produces the same error message for Form1. Form 1 is instantiated in the main cpp file as: Application::Run(Form1()); I would assume that after instantiation, the object XConn is accessable. But there seems to be no way of telling the compiler to look for this somewhere. I thought public members - managed or not - were supposed to be acessible to all parts of a ...Show All
Smart Device Development Treo emulator test phone call problem
We are trying to make some test call from the treo 700w emulator. In our application we have catching the phone call event from the device and doing some db insertion. But when we try to call from the emulator we get the following error “The phone has not been activated. Contact your mobile service provider to activate your phone.” Please let us know how we can surpass this message and do some test call from the treo emulator. One thing is clear.I am developing for windows mobile 5.0 devices.I have developed a version of my application for smart phone as well as pocket pc.Treo 700w is one of the devices which our client is going to be use.I think this is the best possible forum where I should get m ...Show All
Visual Studio Express Editions Problem running program on new VS.NET Express Install
I am fairly new to C++ and am taking an online course. I just installed VS.NET 2005 Express. The install went fine, and my first program supposedly compiled OK, but when I tried to start without debuging, I got this message: Unable to start program c.|documents and settings\lynette\my documents\visual studio 2005\ projects\dayType\debug\ dayType.exe. The system cannot find the path specified. I went back and installed a SDK program and rebooted, but got the same message. What can I do to finish installing and run my program Thanks! Lynette First off, what version of VS Express are you using C++ Express Second, have you actually verified that the file exists in the path listed The Express product is simply saying that ...Show All
.NET Development Problem: 64-bit MFC C++ DLL calling 32-bit C# class library through COM
Hi, I have a MFC C++ DLL that communicates, through COM, with a C# class library. I'm devlopping under WinXP 64-bit edition, VS2005 Team Suite, and as long as both projects are compiled as win32/x86 apps, everything works fine! The problem appears when I compile the MFC C++ DLL as x64 app, while still compiling the C# class library as x86 app (reason: this class library uses 32-bit only dlls). When I try to create the C# class library as a COM instance, I get a " 0x80040154 Class not registered " error. I know that 32-bit components are registered in HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Classes\ and my C# class library is there. So, is it really a registration problem, or it's something else I know that 32 and 64-bit DLL are not compat ...Show All
Visual C++ Explicit Specialization of member functions.Help !
I have written a Stack class as shown below. Can anybody tell me how to specialize the Sum function for const char * #include <iostream> #include <cassert> #include <string> using namespace std ; template < typename T, int size = 5> class Stack { T arr[size] ; int m_Top ; public : Stack() ; void Push(T val) ; void Pop() ; T & Peek() ; T Sum() ; } ; template < typename T, int size> T Stack<T, size>::Sum() { T temp = T() ; for ( int i = 0 ; i < size ; i++) temp+=arr ; return temp ; } template < typename T, int size> Stack<T,size>::Stack() : m_Top(-1) { } template < ...Show All
.NET Development How to run custom code when List<T>.Add or List<T>.Remove is running
Hi, Before generics I used something like this to connect childs with parent classes interface IMyItem { CollectionOwner Owner{get;set;} } class MyCollection : System.Collections.CollectionBase { // ctor public MyCollection(CollectionOwner owner) { _owner = owner; } // internal interface protected override OnAdd(object item) { if(item is IMyItem) ((IMyItem)item).Owner = _owner; } } this way one was able to add items to a owner class owner.Items.Add(new Item()) and the owner had the item instance in his list while the item had a reference to his owner, which made a call like item.Remove() possible instead of calling owner.Items.Remove(item) Now, .net 2.0 introduced generics, way cool. But how do I implement this behaviour wi ...Show All
Smart Device Development How do I work with a class???
Hola!! Hi, I'm developing a pocket pc application, and I have some problems working with a class. Firs of all I define de Class: Public Class OnlineFutur Public Shared Posicio As Int64 Public Shared TempsSegBola As Int64 Public Shared VelocitatPilota As Integer Public Shared Efecte As Integer End Class then I declare a variable as: Dim Registre As OnlineFutur And then I try to change the parametres of Registre: Registre.Posicio = 5 But this last line get the following error: "Acces of shared member, constant member, enum member or nested type trough an instance; qualifying expression will not be evaluated" I dont know a lot of Visual Basic ...Show All
Visual C++ Error message PSAPI.DLL
I am getting a error pop up saying Get Process Image file name w. could not be located in the dynamic link library psapi.dll What should I do to fix this. April Sr: To whom it may concern: I been getting this error messege PSAPI.DLLSmart Bridge Alerts MotiveSB.exec,( this happen sooner I logg in) . Please what can I do to correct it. thanks in advance ...Show All
Windows Forms How to create a interface?
HI: By the last two weeks I have been seeking information about how to do the following things, but nothing, please help me: (you will see that all the options come from the visual studio 2005 interface) 1.- How to create or add the MultiPage Control (like the Visual Studio 2005) I use the COM control but is different, doesn't have the "VisualStyles" enabled 2.- How to create the menus like the Toolbox with the option auto hide, window potition, close with the splitter and the current icon when is hide 3.- the most important of the 3, how to set the mdiChilds forms like the Visual Studio, ok this one is a bit difficult to see, but check this out, select the titlebar of the solution explorer and hold the click, then drag ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Upcoming Starter Kits
From yesterday's webcast (where was everyone ), it was mentioned that a puzzle starter kit would be included in the RTM version and that the XNA Racer starter kit would come with the Creator's Club membership. I didn't get a chance to confirm this. Is this the case Also, are there any plans for other starter kits down the road Joel Martinez wrote: Hmm, a quick google search turns up nothing ... I suppose maybe I was just remember this post . :-) I remember that thread. I'd love to see FPS and RTS starter kits. There's a lot of other possibilities - board game, RPG, side scroller, etc. ...Show All
