Software Development Network Logo
  • Windows Forms
  • Visual C#
  • Visual FoxPro
  • Visual Studio
  • Visual C++
  • Visual Basic
  • Audio and Video
  • Windows Vista
  • .NET Development
  • Game Technologies
  • Microsoft ISV
  • SharePoint Products
  • VS Team System
  • SQL Server
  • IE Development

Software Development Network >> enric vives's Q&A profile

enric vives

Member List

fchapa
Joao Pinto
Brainter
ZhangZJ
GriffinSmith
Richard3D
atypoli
XNAConfused
Duncan Woods
bvod5647
RichardCasey
GSReddy
kcabral1
etcheverrjc
Latso
ahrio
Amanda Jamin
Prashweenet
Jimmy Seow
King Nerd
Only Title

enric vives's Q&A profile

  • Software Development for Windows Vista How to inject DLL in all processes?

    In Vista, is it possible for a Service to inject a dll in all processes (including those which are running in Admin context) I want to do this without showing the consent prompt. Help! Hello Navin C, To answer your first question, no, because session 0 is isolated and can only communicate with existing user space processes using approved methods (named pipes etc). and to answer your second question, no, because when elevating you will always be prompted with the UAC elevation prompt so the user can approve / disapprove admin rights to the process. What are you trying to do exactly Perhaps there is another way of doing this Thanks! Matthew Braun ...Show All

  • Visual C# Why doesn't my code work?

    I want my tabs to always be 1/4 (there are 4 tabs) the width of the tab container, but when I do the following code: Size temp=tabs_main.ItemSize; temp.Width=tabs_main.Size.Width/4; But it doesn't work, nothing happens at all. Yes, SizeMode is set to fixed. ~DtD PS. The code is in the Resize event for the tab parent, I also tried it in a press button event. DtD, the problem seems to be due to the fact that you are resizing the tabs in the Resize event of the TabControl itself. Changing ItemSize fires off another Resize event, and this produces an infinite loop that locks up your app and is probably the source of the exception you saw (even though I didn't manage to ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. GSE and Vista

    So I heard on letskilldave (and the FAQ mentions it too) that there will be no Vista support for awhile, but I was really curious as to what the policy of GSE on Vista was. Is there some technical reason that it will not run, or is it something discouraged due to lack of testing e.g., will I be able to convince it to run by fooling/mangling the installer, or will it explode when I try to do anything with it Having just installed Vista 5536 on my best machine (the one sitting next to my 360 and the one with a new video card) and loving it, I don't think I could stand switching back to XP. I also need to do some ‘real’ dev under Vista, so that makes things difficult too ;( Thanks for any info anyone knowledgeable can ...Show All

  • Visual Studio 2008 (Pre-release) Clipboard Problem

    Hi there I seem te be having a problem when placing images on the clipboard. It only seems to be a problem when the code is executed on a Virtual PC and I suspect it has something to do with graphics memory, but I am not sure, and I was hoping that perhaps someone will know of a better way to accomplish this. Here is some info on the app. We have an avalon design canvas on which all kinds of objects are placed. Later on the user can then select an area of this design canvas and "grab" a bitmap image of the selection. This bitmap image is placed on the clipboard from where it can be pasted into other applications as normal images. Here is the code that takes, as input, a FrameworkElement, makes a bitmap out of it an retur ...Show All

  • Visual C# Static fields, inheritance, and Reflection...

     I'm trying to force a class that inherits from a base class that contains a static field to assign a value to this field. I'm not having any luck. For example, say I have a base class "Shape": public class Shape { public static string Description = "A shape"; } and I want to create a class that inherits from shape, but I want the new class to be forced to assign a value to 'Description'. Is this possible I know I can't use abstract or virtual along with static.. The reason for this is that I want to be able, when using reflection, to use the FieldInfo class to return the 'Description' of the inheriting class. I know I can assign a value to 'Description' in the constructor of the inheriting class, but the Typ ...Show All

  • Visual Basic unable to cast COM object error

    Hello, I am having a strange problem that I can't seem to figure out. I am using visual studio 2005, visual basic, .net 2.0. In my application I am using the Microsoft Internet Controls COM object to automate an Internet Explorer instance. The whole application runs fine in debug and release on my development WindowsXP machine. When I publish the project to Windows Server 2003 to run as a release, I receive the following error. I was reading some posts on registering COM components, etc, but I was not sure why this would run fine on my dev machine and blow up on the release box. Both machines have the same versions of .Net on them. Any insight on where to go, or how to register the COM component would be appreciated, as I am new to ...Show All

  • Visual Basic Default Geteway and Subnet Mask how to get them into string?

    Hi Ok Im going a bit crazy but can some one help me to get Defauld Geteway and net mask I assume the only way to get it is to use WMI, and I have no expiriance in doing that :-( So would really apreciate some help :-) Thanks! PS: Oh yes im running 2005, maybe there are some new easy ways tempgp wrote: Oh I got wrong tool, he code creator gives me the code, but I can find Defult getway Here is how I got the code I posted. Load the tool and set Code Language to VB .Net from the Code Language menu. In the drop down called Classes (Dynaminc or Static) select "Win32_NetworkAdapterConfiguration. You will then see a results window with a list of parameters, select the parameters you are interested in using standard ...Show All

  • .NET Development Graphics object for printing

    Hi, I am trying to calculate the number of pages in a print document in order to update the PrinterSettings.FromPage and PrinterSettings.ToPage before the PrintDialog is opened. I know how to calculate the number of pages, but I need a graphics object. The problem is that I don't have a reference to a graphics object until the PrintDocument's PrintPage event is fired (which occurs after the PrintDialog is closed). Which graphics object should I use Any help would be appreciated. Lee I wrote a rendering engine that operates in three modes. In draw mode is draws pages on the screen. In paint mode it paints to a graphics object. In prepare mode it just returns a collection of page objects that desc ...Show All

  • SQL Server Error on using VB in calculated members AFTER stepping up to Enterprise version ??

    I have "succesfully upgraded" ( ) our SQL2005 from standard to Enterprise version. Before, following set worked like a charm: CREATE SET CURRENTCUBE.[Now CY] AS strtomember("[00 - Time].[00 - H - Calendar].[Day Name].&[" + format(now(),"yyyyMMdd") + "]"); But when I process the cube now, I get this error: Error 1 MdxScript(Sales) (58, 74) The '[now]' function does not exist. 0 0 It seems like the reference to Visual Basic has been lost somehow Curiously following calculated member works, even it also uses now() CREATE MEMBER CURRENTCUBE.[MEASURES].[Now] AS now(), FORMAT_STRING = "yyyyMMdd", VISIBLE = 1; Any suggestions please ;-) / geert larsen denmark ...Show All

  • Smart Device Development DataGrid add and delete rows problem

    Hi. I developped a mobile inventory system under Vistual Studio 2005 C#.net, i bound datagrid with inventory table. i can add rows at some search condition to the DataGrid, i can delete selected row in the DataGrid, but after update the dataAdaptor, the deleted row still there. The following is my code. Add rows to the DataGrid barCodeString = textBoxBarCode.Text + "%"; this.inventoryTableAdapter.FillByBarCodeName (this.orderDB_enDataSet.Inventory, barCodeString); Delete rows from the DataGrid int i = inventoryDataGrid.CurrentCell.RowNumber; orderDB_enDataSet.Inventory.Rows.RemoveAt(i); this.inventoryBindingSource.EndEdit(); this.inventoryTableAdapter.Update(this.orderDB_enDa ...Show All

  • Windows Forms Bug? tabs of tabcontrol lose color when new tab is added

    If I add a new tab to the tab control all the other tabs lose their back color becoming transparent. However, the color still appears on the property page and the label backcolors on the tab still maintain the original color. What can I do to avoid this Is this a bug Thanks for any help on this. smhaig Hello All. smhaig: I couldn't duplicate your problem, but I do have a suggestion. With the TabControl in the Visual Designer, it is very easy to mis-cue with the mouse and think you have selected a different tab page when you in fact have not. I suggest adding the additional tab page, then starting the app and stepping through the tab pages to verify that the previous ones have in fact ...Show All

  • Visual Basic compile both dll and exe

    how can i set up vb.net to create both a dll AND exe on the same compile and then also have the install project recognize both dll and exe and register (with COM) the dll on install at the users computer not only is it a pain to continually switch between the two types of projects for each update, but also a pain to maintain two install packages. thanks thank you so much for your reply. what i would like to do is have is ONE project compiled to both dll and exe at the same time. then the distribution project within the same solution should install both the exe and dll at the same time, and register (with COM) the dll. this way i would only need to have one copy of my source code, and one distribu ...Show All

  • Visual C++ Complie Error

    I am a new to use VS.net 2005 Today when i complie a DX's application,two errors had happened: error C2440: "init" can't transfer "const char [4] to "LPCWSTR" error C2664: "CreateWindowExW":can't parameter 2 transfer "const char [4] to "LPCWSTR" and why the DX'SDK on june 2006 has not include DirectShow if it has,what is instead of The program is following: ============================ #include "stdafx.h" #include "DX1.h" #include <d3d9.h> #define MAX_LOADSTRING 100 LPDIRECT3D9 g_pD3D=NULL; LPDIRECT3DDEVICE9 g_pD3DDevice=NULL; LPDIRECT3DVERTEXBUFFER9 g_pVertexBuffer=NULL; struct CUSTOMVERTEX { FLOAT x,y,z,rhw; DWORD colour; }; ...Show All

  • Visual Studio Express Editions how to build?

    Hi all, can u plz tell me how to write a c# program to do this.. -> I am having one VC++ application. -> This vc++ is application contains 2 projects. -> how to write a c# program to build that VC++ application. plz give me reply.. Thanks --hanu Hi, Actually my Idea why I am asking this thing is.. I have one large VC++ application. To build that application in single system it will take more time. So I want to build that application using Grid technology. So I need to create the VC++ application in to C# threads. So that each thread will be executed in different systems. now can u plz tell me how to write a c# program to devide that VC++ application into threads, with out modifying VC++ applica ...Show All

  • .NET Development "A generic error occurred in GDI+."

    Hi everbody, I am lost! and I need some help. this is my code and I get "A generic error occurred in GDI+." error and can't continue! Thanks private void saveImageExistingMultiplePage(Image[] bmp, Image origionalFile, string type, int PageNumber, string location) { try { //Now load the Codecs ImageCodecInfo codecInfo = getCodecForstring(type); Encoder saveEncoder; Encoder compressionEncoder; EncoderParameter SaveEncodeParam; EncoderParameter CompressionEncodeParam; EncoderParameters EncoderParams = new EncoderParameters(2); Bitmap pages; Bitmap NextPage; saveEncoder = Encoder.SaveFlag; compressionEncoder = Encoder.Compression; origionalFile.S ...Show All

©2008 Software Development Network