Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. darrellblackhawk

    RE: How to make certain additions to an .htaccess file

    Hello, I have an .htaccess file that I'm using as a the base of router on a client site. RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ index.php [NC,L] As you can...
  2. darrellblackhawk

    Adding content to elements from different parts of XML stream

    Hello, I have some XML documents that are organized in a unique way. The parts that I need to parse out into elements are <p> paragraph elements and <media> image elements. The problem is that the two different element types are in different parts of the XML. The <p> paragraph elements come...
  3. darrellblackhawk

    Need to set evironment variables for a specific application

    Hello, I have two compilers on my system and would like to switch environment variables when one of them starts up. Visual Studio runs as the normal development environment, but I also have ‘Open WatCom’ to develop older C/C++/Win32/Dos/etc. style applications. I'd like certain environment...
  4. darrellblackhawk

    How to strip trailing 0's from a column from within an SQL Statement

    I'm modifying some SQL Reporting Services reports that present data from a Great Plains accounting system. GP uses SQL Server as its datastore - ergo - Reporting Services. Here's my dilemma: Great Plains contains: three columns for phone numbers & one for fax numbers per customer and...
  5. darrellblackhawk

    Dumb question... I think...

    How do you determine any variable's data type. i.e. declare @my_money as money declare @my_nvarchar as nvarchar(100) select TYPE(@my_money), TYPE(@my_nvarchar) Where TYPE(...) equals some function that returns the data type and hopefully it's precision. Darrell
  6. darrellblackhawk

    Another newbie question: Returning binary data from COM

    Here's another newbie question: I'm trying to return raw binary data to PHP from a COM object. I can't seem to get the data into a variable for processing. It's just truncated. I assume PHP is seeing it as a boolean value. How does one insure that binary data is actually returned to a...
  7. darrellblackhawk

    Passing variable by reference to COM object

    I've created a COM object in Visual FoxPro for use with PHP. I've verified it functions properly except for one important issue: it doesn't change variable contents passed by reference to methods in the COM object. I've instanced the object in both C++ and VB to insure it works as designed...
  8. darrellblackhawk

    Get Sender's email address in Outlook 2002 and below

    Many of us have tried to figure out how to get a sender's email address when automating Outlook before version 2003 (SenderEmailAddress). I was just playing around with this again today and came up with a work-around to retrieve it, even though Outlook 2002 and below doesn't expose it in its...
  9. darrellblackhawk

    Return User tables and their objects in particular order

    I'm trying to get a result set of User tables and their objects in a particular order. I can get all the objects with the following select statement, but I'm unsure of how to order the result set the way I want it. use Pubs Select name,id,xtype,parent_obj from sysobjects where xtype = 'U' or...
  10. darrellblackhawk

    Anomaly/Bug in VFP?

    * Here's a little anomaly * When the the go() method is called on CConcreteClass * the hidden property "cKey" of oHidden2 is * visible to CConcreteClass. * cKey is not visible to CConcreteClass in any * other aggregated object. * At the outer "set step on" things are as expected * hmmmmm...
  11. darrellblackhawk

    Faster RGB Inversion Function

    * Function: InvertIntRGB() * Descript: Inverts an integer RGB value * Pass: R,G,B (Output i.e. Pass in by reference) * They will contain the numeric (dec) * RGB values upon return * * bDecString (Input) * If .t., the function will return a * comma separated, zero padded decimal *...
  12. darrellblackhawk

    Integer to RGB and Inversion of RGB values

    Below you'll find two functions: IntToRGB and InvertIntRGB, which are relatively fast and may be of use. They have no type or range checking, so passing valid values are essential. Hope someone finds them useful. Darrell * Function(s) usage example clear local R,G,B, nInitialValue...
  13. darrellblackhawk

    How to drill down into Visio Entity Shape Object Model

    Does anyone know where to find information required to view and update the Database properties of the various shapes that can be added to a E/R diagram using automation? Darrell
  14. darrellblackhawk

    Can't eliminat SaveAs dialog when automating IE

    I'm automating internet explorer in both VB and Visual FoxPro. I can't seem to get rid of the file saveas dialog no matter what I do. Any ideas? Thanks Example. Private Sub Command1_Click() Stop Dim o As Object Set o = CreateObject("internetexplorer.application") o.Visible = True...
  15. darrellblackhawk

    Problem with wsnprintf

    I'm trying to compile an Active Directory example called: "Example Code for Searching for Users" which is included with the Platform SDK. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ad/ad/example_code_for_searching_for_users.asp I'm junior with C++ so I'm a little in the...
  16. darrellblackhawk

    How to reset a users desktop?

    Here's one I know others have experienced. By mistake I've set the desktop with black text on black. Not good... I can log on as another user... by the way I have multiple logons, including domain adminstrators... Anyway, how do I reset a users desktop while logged on as local or domain...
  17. darrellblackhawk

    How to programmatically configure a connector's address space

    I'm trying to programmatically configure the address space for an SMTP connector. The connector; which is called "bad servers"; routes mail that can't be sent directly, through our ISP SMTP account. This works great, except I want to automate the addition of new domains to the address space...
  18. darrellblackhawk

    Insertion point disappears when DynamicCurrentControl is present

    Hello: I've got an interesting problem that hopefully someone has encountered already. I have a grid on a form with 3 columns. The columns types are: DateTime, Text, and Date. In the init() method of the grid I have the following code: This.ADDPROPERTY("aDeletedRecs[1,1]",0)...
  19. darrellblackhawk

    Block Keyboard and mouse input

    The following blocks keyboard and mouse input. It won't stop a cntrl+alt+delete. Make sure you unblock after it's no longer needed. If not, no other app will be able to run until a reboot. Darrell Declare integer Sleep in Win32Api integer Declare integer BlockInput in Win32Api integer...
  20. darrellblackhawk

    Quickly determine if a varable is an array and get dimensions

    CLEAR LOCAL i LOCAL ARRAY a1[1], a2[1,2], a3[2,1], a4[4,3], a5[43,53] ? IsArray(@i) ? IsArray(@a1) ? IsArray(@a2) ? IsArray(@a3) ? IsArray(@a4) ? IsArray(@a5) * Results at runtime: (added star) *0' *1,1,1 *1,1,2 *1,2,1 *1,4,3 *1,43,53 * Pass the variable by reference to determine if it's...

Part and Inventory Search

Back
Top