- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 8
- Posts with Upvotes
- 7
- Upvoting Members
- 4
- Downvotes Received
- 5
- Posts with Downvotes
- 3
- Downvoting Members
- 5
19 Posted Topics
When an average user demands to run Windows app on Linux, what he/she actually conveys is "I'm not satisfied with what comes with Linux as alternative". OOo is regarded like "MS Office 10 years ago". There're no equivalents of Adobe (GIMP? no, thanks) or Autocad tools. Even Nokia does not …
First off, if you intend to perform text processing using shell tools you must learn to convert your data into pure text. MS Word is no-no. Also, you must post the data you want to process only, not something annotated with your comments at top or bottom.
[QUOTE=cfajohnson;1420976][INDENT][CODE] dir=/path/to/1TB/drive IFS=$(printf "\n") zip mdf $(find "$dir" -name '*.mdf') find "$dir" -name '*.mdf' -exec rm {} + [/CODE][/INDENT][/QUOTE] Why [ICODE]IFS=$(printf "\n")[/ICODE] instead of just [ICODE]IFS=$'\n'[/ICODE] ? To avoid bash-only feature?
[QUOTE]when I am compiling it i am getting no errors and no warnings. but in registry I can't find the value[/QUOTE] It doesn't matter if it compiles OK or not. Your problem is at runtime. You [B]must[/B] check the return codes of the library functions you call, because C does …
If you google, you'll find some examples based on registry editing. But I [I]think[/I] that is not formally supported by MS, it's more like a hack. The formal way is to write Shell extension (MS dev docs refer to Win Explorer as [B]Shell[/B]). You need to implement several COM interfaces …
That's mostly about linking with libraries written in different languages (there's virtually no program that does not link with some library). As long as a dll conforms to the calling convention of the main program's language it can be linked and does not matter with which language it was [U]originally[/U] …
[QUOTE=nutrion;1421997]All, Any ideas? I'm seeing that net use is dumping all of its output into the list, but I can't split it by anything since it only has 1 element (or at least I don't think I can). [/QUOTE] add a split() method as follows: [CODE]servers = subprocess.Popen(["net","use"], stdout=subprocess.PIPE, universal_newlines=True).communicate()[0].split("\n")[/CODE] …
[QUOTE=m1n1m3;1422084]Hi, i have 1 bit field [/QUOTE] No, you have 3 bit fields, packed into a word. [QUOTE]And pointer to a bit field.[/QUOTE] Bit fields don't have address, so you cannot have a pointer to them. [QUOTE][B]Question[/B] how to use a memmove on bit field. (does not work at all) …
What is meant by "channels"? I remember shared memory, pipe, message queue, domain sockets as IPC mechanisms on Posix, but not channels.
C is old. It does not change often. Once you learn the fundamentals, picking up what new standard brings is a few days' work. I recommend K&R to learn C. That's all you need. After that, you select the libraries (and functions to call within) to develop software. That's it. …
Oh dude :icon_frown: There's [U]no[/U] [ICODE]year[4][/ICODE], you're corrupting memory. Also [ICODE]fseek(fp, 0, SEEK_CUR);[/ICODE] is meaningless. [ICODE]printf("Title: "); puts(title);[/ICODE] is stupid, when there's [ICODE]printf("Title: %s\n", title);[/ICODE] but apparently it failed cause you don't know about C-strings. You don't know about arrays. You don't know Stream I/O, how file pointers behave after …
[QUOTE=yuri1969;1413745]Hi, I just wat to ask if there is a chance to specify the output destination of [B]foo.o[/B] file. Now the output is forwarded to the makefile dir. [/QUOTE] I don't know of an option to specify the output directory for obj files, but you can specify a pathname for …
Noone can really help you without seeing how you defined [ICODE]input[/ICODE]. Why don't you post all the code? As I see from the [B]crap[/B] you've posted, you can't have anything worth hiding from us.
Files are not inherited. Classes are inherited. Just create all the files in the same folder, they'll all be in the same(default) package visible to each other. You shall use "extends" keyword in class definitions. At the end just compile the class that contains the main() method, then java compiler …
The problem is obvious. Actually it's too obvious, which implies you don't know C at all and trying to fool us by stating you've [U]originally[/U] written this code. Here you go: [CODE] int main() { process *p; p->pid = 1; p->reference_string = "000111222"; [/CODE]That tells you don't know about pointers …
[QUOTE=Keidi;1409762]I am trying to call a php script through a shell script.The script is to be called as the run on receive directive of gammu-smsd.My php script executes as expected when I call it using[CODE]/opt/lampp/bin/php myvarsreader.php[/CODE].However on trying to run my script(From terminal): [CODE]#!/bin/sh PROGRAM=/opt/lampp/bin/php myvarsreader.php eval "$PROGRAM \"\${SMS_${i}_NUMBER}\" \"\${SMS_${i}_TEXT}\"" …
Do you really have to do this using C? There are some beautiful Linux command line tools to accomplish such chores.
[QUOTE=dspjm;1411230]What's wrong with the program?[/QUOTE] You're missing a NULL in the first node. [CODE] int main() { int i; LIST list=(position)malloc(sizeof(struct node)); list->next = NULL; printf("Inserting data...\n"); ... [/CODE]
.Net platform compiles every program into native code before execution, so performance may not really be an issue. I'd say go with C# (and .Net) since that's the future of Windows development. OTOH, Win32 is neither dead nor outdated. Download Windows SDK and see for yourself. But Win32 is purely …
The End.
ckoy