TarPista's Q&A profile
Visual Studio Express Editions dataset and datagrid problems
i have a db (access file) i draged a datagrid and connected the thing to the dataset in wizard it automathicly gave me this line in my load function this .workersTableAdapter.Fill( this .db1DataSet.Workers); now i see the rows inside the grid, but i cant seem to change them (when i reopen the program, the rows are the same they were) if someone here knows the subject and can give me some pointers that could be great (if that someone has an email address, icq, or msn, even better, maybe i could even send it to them if they would rather see it with their own eyes) well firstly you have accept changes being called before doing an update() which wouldnt work. so comment out the acceptChanges() before U ...Show All
SQL Server BLOB or VARBINARY(MAX) as SSIS source.
Hi all, Can a SSIS package treat a file from a table ( VARBINARY(MAX) or BLOB) as a source for migration Thanks in advance, DBAnalyst Sure. The varbinary(max) SQL 2005 data type maps to the SSIS type DT_IMAGE, which is just a bunch of bytes of which the file consists. So what you have at that point is a byte stream, or byte array. To use those bytes as file source, you could write them to a file in one dataflow and read them in a second dataflow. Another way to use varbinary(max) data as a "file source" would be to use a script or custom source component (its not that painful) to wrap a StreamReader object arround the SQL byte stream. Using this approach, the varbinary(max) never touc ...Show All
Visual C++ C/C++ cross-development environment
Hello everyone, I read some beginner materials for C/C++ cross-development environment, which consists a host machine and a target machine. The host machine can produce binary executable code for the target machine, which has a different hardware architecture compared with the host machine. For example, the host machine can be x86 CPU, but the target machine can be ARM CPU. How mysterious it is! I am wondering what mysterious things do the host machine have in order to produce the binary code for a different hardware architecture machine. I think the host machine should contain, - compiler/linker which works on host system but produce binary output for target system; - .h header files for target system; - dynamic library for target system ...Show All
.NET Development Windows Service and .Net Remoting
I have a Remoting server that hosts 3 object and uses TCP channel. When the server runs as utility the TCP Clients are able to connect and access the methods of these objects BUT when the server runs as windows Service the TCP Clients do not have access to these objects however, the server is still listening on the port opened by TCP channel. Any suggestions Thanks No there is no timer in the server. Server uses TCP Server channel for hosting 3 objects: singleton,singlecall and CAO. The application name for all three of them are coming along with port number are coming in from app.config. All clients uses tcp client channel for communication. Thanks Parag ...Show All
SQL Server table name too long via ODBC
Hi, I am traing to execute this select SELECT count(*) CM_CERT_VARIANCE_DET_APINV_RELATE using SQL SERVER ODBC, however, I received this message: "Identifer too long" Is there any table length name limitation I think, there is, because works well on SQL environment. I mean, should this table have less then 18 characters Can I work around this limitation cheers, Alessandro Hi Alessandro, I'm guessing that you didn't do a copy-and-paste and simply missed the from clause SELECT count(*) FROM CM_CERT_VARIANCE_DET_APINV_RELATE If not, you can try executing SELECT count(*) FROM [ CM_CERT_VARIANCE_DET_APINV_RELATE] How are you executing the statement (eg. VB6 ADO/RDO, ADO .Net OLEDB in ...Show All
Software Development for Windows Vista about ACM Wrapper filter
according to msdn docs ACM Wrapper filter is used both as decompressor filter and compressor filter. i have three questions : 1. if I use ACM Wrapper like in msdn example as compression filter , can it compress files only from PCM format or format of source file doesn't matter 2. if I use ACM Wrapper like in msdn example as compression filter , can it also perform resampling , if I change media type of its output pin 3. in order to do both format conversion and resampling of WAV files should I use ACM Wrapper to decompress WAV file to PCM , and then perform format conversion and resampling I've tried to build filter graph as follows : [file src]->[wav parser]->[acm wrapper added directly]->[format codec chosen with ICreateDevEnum ...Show All
Game Technologies: DirectX, XNA, XACT, etc. MDX 2 Time Bomb
Almost all MDX2 Ctors are calling the bombing code below: public static unsafe void CheckTimeBomb () { DateTime time1 = new DateTime ( 0x7d6 , 10 , 5 ); if ( DateTime . Compare ( DateTime . Today , time1 ) >= 0 ) { MessageBoxW ( null , & _C@_1PI@LKOFODJP@ $AAT $AAh $AAi $AAs $AA 5 $AAp $AAr $AAe $AA 9 $AAr $AAe $AAl $AAe $AAa $AAs $AAe $AA 5 $AAv $AAe $AAr $AAs $AAi $AAo $AAn $AA 5 $AAo $AAf $AA 5 $AAD $AAi $AAr $AAe@ , & _C@_1DE@JJLLKEIK@ $AAM $AAi $AAc $AAr $AAo $AAs $AAo $AAf $AAt $AA 5 $AAM $AAa $AAn $AAa $AAg $AAe $AAd $AA 5 $AAD $AAi $AAr $AAe $AAc $AAt $AAX $AA $AA@ , 0x2000 ); throw new TimeBombException ( "This pre-release version of DirectX has expired, please upgrade to the latest version f ...Show All
Visual Basic Winsock OR TCP connection + SSL
Hi, I am making an Email reader program, and I need to use POP3 servers. I learned the protocol so I'll could use winsock for the connections. The problem is, that a lot of servers require SSL connection, and I don't know how to open one... I know there is a way with the TCP socket, but I don't know how...... :( Can anyone tell me how Thanks, Ofir. Anyone I only need someone to tell me how to use a TCPCLIENT, and after that, TCPCLIENT + SSL.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! PLEASE!! ...Show All
Visual Studio Can't view CString values in debugger
After adding a managed class to our application (forcing a change to _AFXDLL) we can no longer view the contents of CString variables in the debugger. The datatip and watch windows show " " for the contents of the string. We have looked at our autoexp.dat and mcee_mc.dat files but can't see anything that might be the source of the problem (that doesn't mean it isn't in one of those files, it just means we can't find it.) Can someone please help Thanks, but that option is enabled. For the record, even though it is a C++ app, I also tried setting the "Call ToString() on objects in variables windows (C# only)". Some additional notes: - We have determined that dynamic MFC ...Show All
.NET Development access files with a web service
I want my web service to log every call to it, in a file on the server. e.g: www.microsoft.com/ log.txt assuming my web service would be at: www.microsoft.com/ service.asmx How do I go about getting the actual path of that folder. The server is not my own; We just bought a few years worth of hosting at this company----- I have no access to ISS manager, much less the actual machine because it also hosts other peoples' web sites I basically want the service the simply open the file and append a few lines and close it again. But the type and amount of information that is logged is very dynamic. this will vary from 60 bytes to a few MB here are my questions: How do I get that directory name with my code How do I set a ...Show All
Visual C# Build a 'long' number from two int's
Hello, i'm wondering whether it is possible to "build" a long number from two int's. My aim is to make it platform independent, thus i can't use any shift operators. With them, i would do something like that: long number = (long)myInt | (((long)myInt2) << 32); Does anybody have an idea georg The "endian-ness" of the platform should be hidden by .Net, so as far as I know the simple solution using shifts should work... ...Show All
Visual C# C# Or C++ .net?
Does C# Have The Power Of C++, Or C++ Still The Best I Am Talking From 3D Application Side Hassan Ayoub wrote: So, I Can Use C# As My Mail Language, And C++ As The Hidden Language Again this Depends on the requirement that what kinda software you want to develop if 3D Applications then C# will provide you a fast track with the same power. In this Situation C# is the best. As I mentioned in my last post that C++ has a very limited use now a days which is Low level, like Firewall, Antiviruses, Secure Delete Software, Encryption etc. I hope It will help you to have a choice out of 2 languages, Cheers ;-) ...Show All
SQL Server Performance problem: 2000 vs. 2005
I copied a 2000 database onto 2005 on another box. Running the exact same SELECT query, with 7 tables joined, is running in less than 2 minutes on 2000 and almost 3 hours on 2005. The 2005 box is "bigger and better". I've compared the sp_configure output. There are differences in max worker threads, cost threshold for parallelism, and priority boost. I don't think any one of these is significant. I checked the server properties and the database properties and, again, I did not see what I would consider any significant differences. The 2005 instance has 4GB memory, as opposed to 2GB, but not using that much. In fact, the Total Server Memory (KB) for the instance indicates around 1,230,000 for some reason. We need to reso ...Show All
Visual Basic plz help me in converting this code
hi guys plz can u help me in converting this code from C# to vb.net its about two delegates and two event declared as those two delegates in C# u can use the event in (if statement ) coz u can callthe event as u call the method but in VB u must run the event by using (Raiseevent) public delegate void ChangePageEventHandler(object sender, frmMain.Pages Page); public delegate void NotifyEventHandler(object sender); public event ChangePageEventHandler ChangePage = null; public event NotifyEventHandler Terminate = null; // ╔═══════════════════════╗ // ║ method OnChangePage() ║ // ╚═══════════════════════╝ /// <summary> /// /// </summary> /// <param name="Page"></param> p ...Show All
SQL Server database owner is needed
hi, on 1 of my servers (actually, the dev. server I have setup up here at home), I must included the database owner everytime I select something or make a db call. for example select T.foo from K inner join T on T.id = K.id must actualy be written like: select dbo.T.foo from dbo.K inner join dbo.T on dbo.T.id = dbo.K.id or else it wont work what did I do wrong for this database owner thing to be a "must" when writing queries on this server. spec: sql 2000 sp4 sorry folks, I was tied up on another project for the week. I came back and tried to trouble shoot instead of wasting you guy's time but at the end, i failed. basically, here is the situation: the actual server that will end up hos ...Show All
